pub struct RouteTableOptions<I: Ip> {
pub name: Option<String>,
pub _marker: PhantomData<I>,
}
Expand description
Options for creating route tables.
Fields§
§name: Option<String>
Optional name for the table.
_marker: PhantomData<I>
Marker for the IP version.
Trait Implementations§
Source§impl<I: Clone + Ip> Clone for RouteTableOptions<I>
impl<I: Clone + Ip> Clone for RouteTableOptions<I>
Source§fn clone(&self) -> RouteTableOptions<I>
fn clone(&self) -> RouteTableOptions<I>
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 From<RouteTableOptions<Ipv4>> for RouteTableOptionsV4
impl From<RouteTableOptions<Ipv4>> for RouteTableOptionsV4
Source§fn from(val: RouteTableOptions<Ipv4>) -> Self
fn from(val: RouteTableOptions<Ipv4>) -> Self
Converts to this type from the input type.
Source§impl From<RouteTableOptions<Ipv6>> for RouteTableOptionsV6
impl From<RouteTableOptions<Ipv6>> for RouteTableOptionsV6
Source§fn from(val: RouteTableOptions<Ipv6>) -> Self
fn from(val: RouteTableOptions<Ipv6>) -> Self
Converts to this type from the input type.
Source§impl From<RouteTableOptionsV4> for RouteTableOptions<Ipv4>
impl From<RouteTableOptionsV4> for RouteTableOptions<Ipv4>
Source§fn from(val: RouteTableOptionsV4) -> Self
fn from(val: RouteTableOptionsV4) -> Self
Converts to this type from the input type.
Source§impl From<RouteTableOptionsV6> for RouteTableOptions<Ipv6>
impl From<RouteTableOptionsV6> for RouteTableOptions<Ipv6>
Source§fn from(val: RouteTableOptionsV6) -> Self
fn from(val: RouteTableOptionsV6) -> Self
Converts to this type from the input type.
Source§impl<I: Ip, IpType> GenericOverIp<IpType> for RouteTableOptions<I>where
IpType: Ip,
impl<I: Ip, IpType> GenericOverIp<IpType> for RouteTableOptions<I>where
IpType: Ip,
Source§type Type = RouteTableOptions<IpType>
type Type = RouteTableOptions<IpType>
The type of
Self
when its IP-generic parameter is replaced with the
type NewIp
.Auto Trait Implementations§
impl<I> Freeze for RouteTableOptions<I>
impl<I> RefUnwindSafe for RouteTableOptions<I>where
I: RefUnwindSafe,
impl<I> Send for RouteTableOptions<I>
impl<I> Sync for RouteTableOptions<I>
impl<I> Unpin for RouteTableOptions<I>where
I: Unpin,
impl<I> UnwindSafe for RouteTableOptions<I>where
I: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
type Error = <U as TryFromExt<T>>::Error
Source§fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
Tries to perform the conversion.