#[non_exhaustive]pub enum AddressProtocol {
Loopback,
RouterAnnouncement,
LinkLocal,
Other(u8),
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for AddressProtocol
impl Clone for AddressProtocol
Source§fn clone(&self) -> AddressProtocol
fn clone(&self) -> AddressProtocol
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 AddressProtocol
impl Debug for AddressProtocol
Source§impl From<AddressProtocol> for u8
impl From<AddressProtocol> for u8
Source§fn from(d: AddressProtocol) -> Self
fn from(d: AddressProtocol) -> Self
Converts to this type from the input type.
Source§impl From<u8> for AddressProtocol
impl From<u8> for AddressProtocol
Source§impl PartialEq for AddressProtocol
impl PartialEq for AddressProtocol
impl Copy for AddressProtocol
impl Eq for AddressProtocol
impl StructuralPartialEq for AddressProtocol
Auto Trait Implementations§
impl Freeze for AddressProtocol
impl RefUnwindSafe for AddressProtocol
impl Send for AddressProtocol
impl Sync for AddressProtocol
impl Unpin for AddressProtocol
impl UnwindSafe for AddressProtocol
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