pub enum RouteSetError {
Unauthenticated,
InvalidDestinationSubnet,
InvalidNextHop,
UnsupportedAction,
PreviouslyAuthenticatedInterfaceNoLongerExists,
MissingRouteProperties,
MissingMetric,
// some variants omitted
}
Expand description
Error type returned when failing to manipulate a route set.
Variants§
Unauthenticated
The route set attempted to add/remove a route that uses an
unauthenticated interface. Clients must first authenticate the route set
for a particular interface by calling AuthenticateForInterface
, before
managing routes over the interface.
InvalidDestinationSubnet
This route specified a destination subnet that is invalid. E.g. the prefixlen was invalid, or the subnet’s host bits were set.
InvalidNextHop
This route specified a target whose next-hop address is invalid. Next-hop addresses must be unicast addresses.
UnsupportedAction
The route set attempted to add/remove a route with an unsupported
RouteAction
variant.
PreviouslyAuthenticatedInterfaceNoLongerExists
The route set attempted to add/remove a route that uses an interface that was previously authenticated, but no longer exists.
MissingRouteProperties
The route set attempted to add/remove a route that was missing required specified properties.
MissingMetric
The route set attempted to add/remove a route that was missing a metric.
Implementations§
Source§impl RouteSetError
impl RouteSetError
pub fn from_primitive(prim: u32) -> Option<Self>
pub fn from_primitive_allow_unknown(prim: u32) -> Self
pub fn unknown() -> Self
pub const fn into_primitive(self) -> u32
pub fn is_unknown(&self) -> bool
Trait Implementations§
Source§impl Clone for RouteSetError
impl Clone for RouteSetError
Source§fn clone(&self) -> RouteSetError
fn clone(&self) -> RouteSetError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for RouteSetError
impl Debug for RouteSetError
Source§impl<D: ResourceDialect> Decode<RouteSetError, D> for RouteSetError
impl<D: ResourceDialect> Decode<RouteSetError, D> for RouteSetError
Source§impl<D: ResourceDialect> Encode<RouteSetError, D> for RouteSetError
impl<D: ResourceDialect> Encode<RouteSetError, D> for RouteSetError
Source§impl Hash for RouteSetError
impl Hash for RouteSetError
Source§impl Ord for RouteSetError
impl Ord for RouteSetError
Source§fn cmp(&self, other: &RouteSetError) -> Ordering
fn cmp(&self, other: &RouteSetError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for RouteSetError
impl PartialEq for RouteSetError
Source§impl PartialOrd for RouteSetError
impl PartialOrd for RouteSetError
Source§impl TypeMarker for RouteSetError
impl TypeMarker for RouteSetError
Source§type Owned = RouteSetError
type Owned = RouteSetError
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
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
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 RouteSetError
impl ValueTypeMarker for RouteSetError
Source§type Borrowed<'a> = RouteSetError
type Borrowed<'a> = RouteSetError
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more