pub enum StationEventTransportError<E> {
Transport(E),
Encode(BinaryEncodeError),
Decode(BinaryDecodeError),
UnexpectedFrame,
EndpointMismatch {
packet_source: StationId,
packet_target: StationId,
event_source: StationId,
event_target: StationId,
},
Router(EventRouterError),
}Expand description
Error produced while bridging station events through 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-event frame.
EndpointMismatch
Packet envelope and decoded event disagreed about endpoints.
Fields
Router(EventRouterError)
Event router rejected the decoded event.
Trait Implementations§
Source§impl<E: Clone> Clone for StationEventTransportError<E>
impl<E: Clone> Clone for StationEventTransportError<E>
Source§fn clone(&self) -> StationEventTransportError<E>
fn clone(&self) -> StationEventTransportError<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 StationEventTransportError<E>
impl<E: Debug> Debug for StationEventTransportError<E>
Source§impl<E: Display> Display for StationEventTransportError<E>
impl<E: Display> Display for StationEventTransportError<E>
impl<E: Eq> Eq for StationEventTransportError<E>
Source§impl<E> Error for StationEventTransportError<E>where
E: Error + 'static,
impl<E> Error for StationEventTransportError<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 StationEventTransportError<E>
impl<E> From<BinaryDecodeError> for StationEventTransportError<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 StationEventTransportError<E>
impl<E> From<BinaryEncodeError> for StationEventTransportError<E>
Source§fn from(value: BinaryEncodeError) -> Self
fn from(value: BinaryEncodeError) -> Self
Converts to this type from the input type.
Source§impl<E> From<EventRouterError> for StationEventTransportError<E>
impl<E> From<EventRouterError> for StationEventTransportError<E>
Source§fn from(value: EventRouterError) -> Self
fn from(value: EventRouterError) -> Self
Converts to this type from the input type.
Source§impl<E: PartialEq> PartialEq for StationEventTransportError<E>
impl<E: PartialEq> PartialEq for StationEventTransportError<E>
impl<E: PartialEq> StructuralPartialEq for StationEventTransportError<E>
Auto Trait Implementations§
impl<E> Freeze for StationEventTransportError<E>where
E: Freeze,
impl<E> RefUnwindSafe for StationEventTransportError<E>where
E: RefUnwindSafe,
impl<E> Send for StationEventTransportError<E>where
E: Send,
impl<E> Sync for StationEventTransportError<E>where
E: Sync,
impl<E> Unpin for StationEventTransportError<E>where
E: Unpin,
impl<E> UnsafeUnpin for StationEventTransportError<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for StationEventTransportError<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