pub enum RouteDst {
Default,
Prefix {
ip: IpAddr,
prefix: u8,
},
}Expand description
Routing table destination: either the default route or a specific prefix.
Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RouteDst
impl<'de> Deserialize<'de> for RouteDst
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RouteDst
impl StructuralPartialEq for RouteDst
Auto Trait Implementations§
impl Freeze for RouteDst
impl RefUnwindSafe for RouteDst
impl Send for RouteDst
impl Sync for RouteDst
impl Unpin for RouteDst
impl UnsafeUnpin for RouteDst
impl UnwindSafe for RouteDst
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