pub enum CommandDispatchTransportError<E> {
Transport(E),
Encode(BinaryEncodeError),
Decode(BinaryDecodeError),
UnexpectedFrame,
EndpointMismatch {
packet_source: StationId,
packet_target: StationId,
dispatch_target: StationId,
},
MissingQueue(StationId),
Queue(CommandQueueError),
}Expand description
Error produced while bridging command dispatch frames through station packet transport.
Variants§
Transport(E)
Underlying station transport failed.
Encode(BinaryEncodeError)
Wire encoding failed.
Decode(BinaryDecodeError)
Wire decoding failed.
UnexpectedFrame
Packet decoded as a non-command-dispatch frame.
EndpointMismatch
Packet envelope and decoded dispatch frame disagreed about the target.
Fields
MissingQueue(StationId)
Target station queue was not registered.
Queue(CommandQueueError)
Target station queue rejected the command.
Trait Implementations§
Source§impl<E: Clone> Clone for CommandDispatchTransportError<E>
impl<E: Clone> Clone for CommandDispatchTransportError<E>
Source§fn clone(&self) -> CommandDispatchTransportError<E>
fn clone(&self) -> CommandDispatchTransportError<E>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<E: Debug> Debug for CommandDispatchTransportError<E>
impl<E: Debug> Debug for CommandDispatchTransportError<E>
Source§impl<E: Display> Display for CommandDispatchTransportError<E>
impl<E: Display> Display for CommandDispatchTransportError<E>
impl<E: Eq> Eq for CommandDispatchTransportError<E>
Source§impl<E> Error for CommandDispatchTransportError<E>where
E: Error + 'static,
impl<E> Error for CommandDispatchTransportError<E>where
E: Error + 'static,
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl<E> From<BinaryDecodeError> for CommandDispatchTransportError<E>
impl<E> From<BinaryDecodeError> for CommandDispatchTransportError<E>
Source§fn from(value: BinaryDecodeError) -> Self
fn from(value: BinaryDecodeError) -> Self
Converts to this type from the input type.
Source§impl<E> From<BinaryEncodeError> for CommandDispatchTransportError<E>
impl<E> From<BinaryEncodeError> for CommandDispatchTransportError<E>
Source§fn from(value: BinaryEncodeError) -> Self
fn from(value: BinaryEncodeError) -> Self
Converts to this type from the input type.
Source§impl<E> From<CommandQueueError> for CommandDispatchTransportError<E>
impl<E> From<CommandQueueError> for CommandDispatchTransportError<E>
Source§fn from(value: CommandQueueError) -> Self
fn from(value: CommandQueueError) -> Self
Converts to this type from the input type.
Source§impl<E: PartialEq> PartialEq for CommandDispatchTransportError<E>
impl<E: PartialEq> PartialEq for CommandDispatchTransportError<E>
impl<E: PartialEq> StructuralPartialEq for CommandDispatchTransportError<E>
Auto Trait Implementations§
impl<E> Freeze for CommandDispatchTransportError<E>where
E: Freeze,
impl<E> RefUnwindSafe for CommandDispatchTransportError<E>where
E: RefUnwindSafe,
impl<E> Send for CommandDispatchTransportError<E>where
E: Send,
impl<E> Sync for CommandDispatchTransportError<E>where
E: Sync,
impl<E> Unpin for CommandDispatchTransportError<E>where
E: Unpin,
impl<E> UnsafeUnpin for CommandDispatchTransportError<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for CommandDispatchTransportError<E>where
E: UnwindSafe,
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