Struct simple_dns::rdata::SRV
source · pub struct SRV<'a> {
pub priority: u16,
pub weight: u16,
pub port: u16,
pub target: Name<'a>,
}
Expand description
SRV records specifies the location of the server(s) for a specific protocol and domain.
Fields§
§priority: u16
The priority of this target host.
A client MUST attempt to contact the target host with the lowest-numbered priority it can
reach; target hosts with the same priority SHOULD be tried in an order defined by the weight field.
weight: u16
A server selection mechanism.
The weight field specifies arelative weight for entries with the same priority.
Larger weights SHOULD be given a proportionately higher probability of being selected.
port: u16
The port on this target host of this service
target: Name<'a>
The domain name of the target host
Implementations§
Trait Implementations§
source§impl<'a> PartialEq for SRV<'a>
impl<'a> PartialEq for SRV<'a>
impl<'a> Eq for SRV<'a>
impl<'a> StructuralPartialEq for SRV<'a>
Auto Trait Implementations§
impl<'a> Freeze for SRV<'a>
impl<'a> RefUnwindSafe for SRV<'a>
impl<'a> Send for SRV<'a>
impl<'a> Sync for SRV<'a>
impl<'a> Unpin for SRV<'a>
impl<'a> UnwindSafe for SRV<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)