Enum RouteSetError
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§
§impl RouteSetError
impl RouteSetError
pub fn from_primitive(prim: u32) -> Option<RouteSetError>
pub fn from_primitive_allow_unknown(prim: u32) -> RouteSetError
pub fn unknown() -> RouteSetError
pub const fn into_primitive(self) -> u32
pub fn is_unknown(&self) -> bool
Trait Implementations§
§impl Clone for RouteSetError
impl Clone for RouteSetError
§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 more§impl Debug for RouteSetError
impl Debug for RouteSetError
§impl<D> Decode<RouteSetError, D> for RouteSetErrorwhere
D: ResourceDialect,
impl<D> Decode<RouteSetError, D> for RouteSetErrorwhere
D: ResourceDialect,
§fn new_empty() -> RouteSetError
fn new_empty() -> RouteSetError
Self
. The specific value does not matter,
since it will be overwritten by decode
.§impl<D> Encode<RouteSetError, D> for RouteSetErrorwhere
D: ResourceDialect,
impl<D> Encode<RouteSetError, D> for RouteSetErrorwhere
D: ResourceDialect,
§impl Hash for RouteSetError
impl Hash for RouteSetError
§impl Ord for RouteSetError
impl Ord for RouteSetError
§impl PartialEq for RouteSetError
impl PartialEq for RouteSetError
§impl PartialOrd for RouteSetError
impl PartialOrd for RouteSetError
§impl TypeMarker for RouteSetError
impl TypeMarker for RouteSetError
§type Owned = RouteSetError
type Owned = RouteSetError
§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.§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 more§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.§impl ValueTypeMarker for RouteSetError
impl ValueTypeMarker for RouteSetError
§type Borrowed<'a> = RouteSetError
type Borrowed<'a> = RouteSetError
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more§fn borrow(
value: &<RouteSetError as TypeMarker>::Owned,
) -> <RouteSetError as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<RouteSetError as TypeMarker>::Owned, ) -> <RouteSetError as ValueTypeMarker>::Borrowed<'_>
&Self::Owned
to Self::Borrowed
.