pub enum TransportError {
Show 15 variants
SendBadMessage,
RecvBadMessage,
BindFailed,
ConnectionDrop,
AlreadyConnected,
PeerNotFound,
PeerBusy,
UnknownRoute,
InvalidAddress,
Capacity,
Encoding,
Protocol,
GenericIo,
PortalInvalidState,
InvalidRouterResponseType,
}
Expand description
A Transport worker specific error type
Variants
SendBadMessage
Failed to send a malformed message
RecvBadMessage
Failed to receive a malformed message
BindFailed
Failed to bind to the desired socket
ConnectionDrop
Connection was dropped unexpectedly
AlreadyConnected
Connection was already established
PeerNotFound
Connection peer was not found
PeerBusy
Peer requested the incoming connection
UnknownRoute
Failed to route to an unknown recipient
InvalidAddress
Failed to parse the socket address
Capacity
Failed to read message (buffer exhausted) or failed to send it (size is too big)
Encoding
Failed to encode message
Protocol
Transport protocol violation
GenericIo
A generic I/O failure
PortalInvalidState
PortalInvalidState
InvalidRouterResponseType
InvalidRouterResponseType
Trait Implementations
sourceimpl Clone for TransportError
impl Clone for TransportError
sourcefn clone(&self) -> TransportError
fn clone(&self) -> TransportError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TransportError
impl Debug for TransportError
sourceimpl Display for TransportError
impl Display for TransportError
sourceimpl Error for TransportError
impl Error for TransportError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<Error> for TransportError
impl From<Error> for TransportError
sourceimpl From<TransportError> for Error
impl From<TransportError> for Error
sourcefn from(err: TransportError) -> Error
fn from(err: TransportError) -> Error
Converts to this type from the input type.
sourceimpl PartialEq<TransportError> for TransportError
impl PartialEq<TransportError> for TransportError
impl Copy for TransportError
impl StructuralPartialEq for TransportError
Auto Trait Implementations
impl RefUnwindSafe for TransportError
impl Send for TransportError
impl Sync for TransportError
impl Unpin for TransportError
impl UnwindSafe for TransportError
Blanket Implementations
sourceimpl<D> AsyncTryClone for D where
D: Clone + Sync,
impl<D> AsyncTryClone for D where
D: Clone + Sync,
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more