pub struct ServiceEntry {
pub index_first_options_run: u8,
pub index_second_options_run: u8,
pub options_count: OptionsCount,
pub service_id: u16,
pub instance_id: u16,
pub major_version: u8,
pub ttl: u32,
pub minor_version: u32,
}Fields§
§index_first_options_run: u8§index_second_options_run: u8§options_count: OptionsCount§service_id: u16§instance_id: u16§major_version: u8§ttl: u32ttl is a u24 value
minor_version: u32Implementations§
Trait Implementations§
Source§impl Clone for ServiceEntry
impl Clone for ServiceEntry
Source§fn clone(&self) -> ServiceEntry
fn clone(&self) -> ServiceEntry
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 ServiceEntry
impl Debug for ServiceEntry
Source§impl PartialEq for ServiceEntry
impl PartialEq for ServiceEntry
Source§impl WireFormat for ServiceEntry
impl WireFormat for ServiceEntry
Source§fn decode<R: Read>(reader: &mut R) -> Result<Self, Error>
fn decode<R: Read>(reader: &mut R) -> Result<Self, Error>
Deserialize a value from a byte stream.
Returns Ok(
Some(value)) if the stream contains a complete value.
Returns Ok(None) if the stream is empty. Read moreSource§fn required_size(&self) -> usize
fn required_size(&self) -> usize
Returns the number of bytes required to serialize this value.
impl Eq for ServiceEntry
impl StructuralPartialEq for ServiceEntry
Auto Trait Implementations§
impl Freeze for ServiceEntry
impl RefUnwindSafe for ServiceEntry
impl Send for ServiceEntry
impl Sync for ServiceEntry
impl Unpin for ServiceEntry
impl UnsafeUnpin for ServiceEntry
impl UnwindSafe for ServiceEntry
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