pub struct MldAddressRecordRepr<'a> {
pub record_type: RecordType,
pub aux_data_len: u8,
pub num_srcs: u16,
pub mcast_addr: Ipv6Address,
pub payload: &'a [u8],
}
Expand description
A high level representation of an MLDv2 Listener Report Message Address Record.
Fields§
§record_type: RecordType
§aux_data_len: u8
§num_srcs: u16
§mcast_addr: Ipv6Address
§payload: &'a [u8]
Implementations§
Source§impl<'a> AddressRecordRepr<'a>
impl<'a> AddressRecordRepr<'a>
Sourcepub const fn new(record_type: RecordType, mcast_addr: Ipv6Address) -> Self
pub const fn new(record_type: RecordType, mcast_addr: Ipv6Address) -> Self
Create a new MLDv2 address record representation with an empty payload.
Sourcepub fn parse<T>(record: &AddressRecord<&'a T>) -> Result<Self>
pub fn parse<T>(record: &AddressRecord<&'a T>) -> Result<Self>
Parse an MLDv2 address record and return a high-level representation.
Sourcepub fn buffer_len(&self) -> usize
pub fn buffer_len(&self) -> usize
Return the length of a record that will be emitted from this high-level representation, not including any payload data.
Trait Implementations§
Source§impl<'a> Clone for AddressRecordRepr<'a>
impl<'a> Clone for AddressRecordRepr<'a>
Source§fn clone(&self) -> AddressRecordRepr<'a>
fn clone(&self) -> AddressRecordRepr<'a>
Returns a copy 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<'a> Debug for AddressRecordRepr<'a>
impl<'a> Debug for AddressRecordRepr<'a>
Source§impl<'a> PartialEq for AddressRecordRepr<'a>
impl<'a> PartialEq for AddressRecordRepr<'a>
impl<'a> Copy for AddressRecordRepr<'a>
impl<'a> Eq for AddressRecordRepr<'a>
impl<'a> StructuralPartialEq for AddressRecordRepr<'a>
Auto Trait Implementations§
impl<'a> Freeze for AddressRecordRepr<'a>
impl<'a> RefUnwindSafe for AddressRecordRepr<'a>
impl<'a> Send for AddressRecordRepr<'a>
impl<'a> Sync for AddressRecordRepr<'a>
impl<'a> Unpin for AddressRecordRepr<'a>
impl<'a> UnwindSafe for AddressRecordRepr<'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