pub struct BorderRoutingPrefixTable {
pub router: Option<BorderRoutingRouter>,
pub prefix: Option<String>,
pub is_on_link: Option<bool>,
pub duration_since_last_update: Option<i64>,
pub valid_lifetime: Option<u32>,
pub preference: Option<i8>,
pub preferred_lifetime: Option<u32>,
/* private fields */
}Expand description
The discovered prefixes by Border Routing Manager on the infrastructure link.
Fields§
§router: Option<BorderRoutingRouter>Information about the router advertising this prefix.
Required.
prefix: Option<String>The discovered IPv6 prefix.
Required.
is_on_link: Option<bool>Indicates whether the prefix is on-link or route prefix.
Required.
duration_since_last_update: Option<i64>Duration since last update of this prefix.
Required.
valid_lifetime: Option<u32>Valid lifetime of the prefix.
Required.
preference: Option<i8>Route preference when is_on_link is false.
Required.
preferred_lifetime: Option<u32>Preferred lifetime of the on-link prefix when is_on_link is true.
Required.
Trait Implementations§
Source§impl Clone for BorderRoutingPrefixTable
impl Clone for BorderRoutingPrefixTable
Source§fn clone(&self) -> BorderRoutingPrefixTable
fn clone(&self) -> BorderRoutingPrefixTable
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 BorderRoutingPrefixTable
impl Debug for BorderRoutingPrefixTable
Source§impl<D> Decode<BorderRoutingPrefixTable, D> for BorderRoutingPrefixTablewhere
D: ResourceDialect,
impl<D> Decode<BorderRoutingPrefixTable, D> for BorderRoutingPrefixTablewhere
D: ResourceDialect,
Source§fn new_empty() -> BorderRoutingPrefixTable
fn new_empty() -> BorderRoutingPrefixTable
Creates a valid instance of
Self. The specific value does not matter,
since it will be overwritten by decode.Source§impl Default for BorderRoutingPrefixTable
impl Default for BorderRoutingPrefixTable
Source§fn default() -> BorderRoutingPrefixTable
fn default() -> BorderRoutingPrefixTable
Returns the “default value” for a type. Read more
Source§impl<D> Encode<BorderRoutingPrefixTable, D> for &BorderRoutingPrefixTablewhere
D: ResourceDialect,
impl<D> Encode<BorderRoutingPrefixTable, D> for &BorderRoutingPrefixTablewhere
D: ResourceDialect,
Source§impl PartialEq for BorderRoutingPrefixTable
impl PartialEq for BorderRoutingPrefixTable
Source§impl TypeMarker for BorderRoutingPrefixTable
impl TypeMarker for BorderRoutingPrefixTable
Source§type Owned = BorderRoutingPrefixTable
type Owned = BorderRoutingPrefixTable
The owned Rust type which this FIDL type decodes into.
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned to a single memcpy. Read moreSource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned to a single memcpy.Source§impl ValueTypeMarker for BorderRoutingPrefixTable
impl ValueTypeMarker for BorderRoutingPrefixTable
Source§type Borrowed<'a> = &'a BorderRoutingPrefixTable
type Borrowed<'a> = &'a BorderRoutingPrefixTable
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned. There are three cases: Read moreSource§fn borrow(
value: &<BorderRoutingPrefixTable as TypeMarker>::Owned,
) -> <BorderRoutingPrefixTable as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<BorderRoutingPrefixTable as TypeMarker>::Owned, ) -> <BorderRoutingPrefixTable as ValueTypeMarker>::Borrowed<'_>
Cheaply converts from
&Self::Owned to Self::Borrowed.impl Persistable for BorderRoutingPrefixTable
impl StructuralPartialEq for BorderRoutingPrefixTable
Auto Trait Implementations§
impl Freeze for BorderRoutingPrefixTable
impl RefUnwindSafe for BorderRoutingPrefixTable
impl Send for BorderRoutingPrefixTable
impl Sync for BorderRoutingPrefixTable
impl Unpin for BorderRoutingPrefixTable
impl UnsafeUnpin for BorderRoutingPrefixTable
impl UnwindSafe for BorderRoutingPrefixTable
Blanket Implementations§
Source§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
Source§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
The marker type to use when the body is at the top-level.
Source§type MarkerInResultUnion = T
type MarkerInResultUnion = T
The marker type to use when the body is nested in a result union.
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