pub struct RouteProperties {
pub specified_properties: SpecifiedRouteProperties,
}
Expand description
The properties of a route, abstracting over
fnet_routes::RoutePropertiesV4
and fnet_routes::RoutePropertiesV6
.
Fields§
§specified_properties: SpecifiedRouteProperties
the specified properties of the route.
Implementations§
Source§impl RouteProperties
impl RouteProperties
Sourcepub fn from_explicit_metric(metric: u32) -> Self
pub fn from_explicit_metric(metric: u32) -> Self
Constructs a RouteProperties
from a specified metric.
Trait Implementations§
Source§impl Clone for RouteProperties
impl Clone for RouteProperties
Source§fn clone(&self) -> RouteProperties
fn clone(&self) -> RouteProperties
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 Debug for RouteProperties
impl Debug for RouteProperties
Source§impl From<RouteProperties> for RoutePropertiesV4
impl From<RouteProperties> for RoutePropertiesV4
Source§fn from(properties: RouteProperties) -> RoutePropertiesV4
fn from(properties: RouteProperties) -> RoutePropertiesV4
Converts to this type from the input type.
Source§impl From<RouteProperties> for RoutePropertiesV6
impl From<RouteProperties> for RoutePropertiesV6
Source§fn from(properties: RouteProperties) -> RoutePropertiesV6
fn from(properties: RouteProperties) -> RoutePropertiesV6
Converts to this type from the input type.
Source§impl Hash for RouteProperties
impl Hash for RouteProperties
Source§impl Ord for RouteProperties
impl Ord for RouteProperties
Source§fn cmp(&self, other: &RouteProperties) -> Ordering
fn cmp(&self, other: &RouteProperties) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for RouteProperties
impl PartialEq for RouteProperties
Source§impl PartialOrd for RouteProperties
impl PartialOrd for RouteProperties
Source§impl TryFrom<RoutePropertiesV4> for RouteProperties
impl TryFrom<RoutePropertiesV4> for RouteProperties
Source§type Error = FidlConversionError<RoutePropertiesRequiredFields>
type Error = FidlConversionError<RoutePropertiesRequiredFields>
The type returned in the event of a conversion error.
Source§impl TryFrom<RoutePropertiesV6> for RouteProperties
impl TryFrom<RoutePropertiesV6> for RouteProperties
Source§type Error = FidlConversionError<RoutePropertiesRequiredFields>
type Error = FidlConversionError<RoutePropertiesRequiredFields>
The type returned in the event of a conversion error.
impl Copy for RouteProperties
impl Eq for RouteProperties
impl StructuralPartialEq for RouteProperties
Auto Trait Implementations§
impl Freeze for RouteProperties
impl RefUnwindSafe for RouteProperties
impl Send for RouteProperties
impl Sync for RouteProperties
impl Unpin for RouteProperties
impl UnwindSafe for RouteProperties
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§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.