#[non_exhaustive]pub enum OriginateError {
ReservedNetwork,
GlobalWithDadr,
OwnAddress,
BroadcastNotUnconfirmed,
UnknownPort,
NoRoute,
Busy,
Unreachable,
GroupDestination,
TooLong {
octets: usize,
limit: usize,
},
Unwritable,
}Expand description
Why Router::originate sent nothing.
It is #[non_exhaustive], so a new refusal isn’t a breaking change: a
match needs a wildcard arm.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ReservedNetwork
DNET 0, which names no network.
GlobalWithDadr
A DADR beside DNET 0xFFFF: a global broadcast names no node.
OwnAddress
The router’s own address: its application, not a wire.
BroadcastNotUnconfirmed
A broadcast destination for an APDU other than an Unconfirmed-Request (Clause 6.3).
UnknownPort
The source selection names a port the router doesn’t have, or the route does.
NoRoute
The table has no route to the network. A search for one was started, unless one was made within the cooldown (Clause 6.6.3.1); poll for it.
Busy
The route is marked busy by flow control (Clause 6.6.3.6).
Unreachable
The route has failed for good (Clause 6.6.3.5).
GroupDestination
The DADR is a group address on its directly attached port that the
router may not send this to (Group).
TooLong
Longer than the egress port carries.
Unwritable
Longer than the scratch, or with a field no NPDU may carry.
Trait Implementations§
Source§impl Clone for OriginateError
impl Clone for OriginateError
Source§fn clone(&self) -> OriginateError
fn clone(&self) -> OriginateError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for OriginateError
Source§impl Debug for OriginateError
impl Debug for OriginateError
Source§impl Display for OriginateError
impl Display for OriginateError
impl Eq for OriginateError
Source§impl Error for OriginateError
impl Error for OriginateError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()