pub struct Srv {
pub priority: u16,
pub weight: u16,
pub port: u16,
pub target: String,
}Expand description
Service record
Fields§
§priority: u16Record priority
weight: u16Record weight
port: u16Service port
target: StringTarget host name
Trait Implementations§
Source§impl Record for Srv
impl Record for Srv
Source§fn decode(data: &mut MsgReader<'_>) -> Result<Self, DecodeError>
fn decode(data: &mut MsgReader<'_>) -> Result<Self, DecodeError>
Decodes the
Record from resource rdata.Source§fn encode(&self, data: &mut MsgWriter<'_>) -> Result<(), EncodeError>
fn encode(&self, data: &mut MsgWriter<'_>) -> Result<(), EncodeError>
Encodes the
Record to resource rdata.Source§fn record_type() -> RecordType
fn record_type() -> RecordType
Returns the
RecordType of queries for this record.impl Eq for Srv
impl StructuralPartialEq for Srv
Auto Trait Implementations§
impl Freeze for Srv
impl RefUnwindSafe for Srv
impl Send for Srv
impl Sync for Srv
impl Unpin for Srv
impl UnwindSafe for Srv
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