pub struct RecordDataSRV { /* private fields */ }Implementations§
Source§impl RecordDataSRV
impl RecordDataSRV
pub fn new(priority: u16, weight: u16, port: u16, target: Name) -> Self
pub fn priority(&self) -> u16
pub fn weight(&self) -> u16
pub fn port(&self) -> u16
pub fn target(&self) -> &Name
pub fn size(&self) -> usize
pub fn write_network_bytes<T>(&self, buf: T) -> Result<(), MtopError>where
T: WriteBytesExt,
pub fn read_network_bytes<T>(buf: T) -> Result<Self, MtopError>where
T: ReadBytesExt + Seek,
Trait Implementations§
Source§impl Clone for RecordDataSRV
impl Clone for RecordDataSRV
Source§fn clone(&self) -> RecordDataSRV
fn clone(&self) -> RecordDataSRV
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RecordDataSRV
impl Debug for RecordDataSRV
Source§impl Display for RecordDataSRV
impl Display for RecordDataSRV
Source§impl PartialEq for RecordDataSRV
impl PartialEq for RecordDataSRV
impl Eq for RecordDataSRV
impl StructuralPartialEq for RecordDataSRV
Auto Trait Implementations§
impl Freeze for RecordDataSRV
impl RefUnwindSafe for RecordDataSRV
impl Send for RecordDataSRV
impl Sync for RecordDataSRV
impl Unpin for RecordDataSRV
impl UnwindSafe for RecordDataSRV
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