pub enum TransportError {
Io(Error),
Truncated,
BadMagic,
BadVersion,
FrameTooLarge {
len: u32,
max: u32,
},
TrailingData,
InvalidConfig(&'static str),
UnknownNode {
node: u64,
},
Deliver(RemoteFrameError),
ThreadJoin,
}Expand description
Why host transport refused or failed an operation.
Variants§
Io(Error)
Truncated
BadMagic
BadVersion
FrameTooLarge
TrailingData
InvalidConfig(&'static str)
UnknownNode
NodeRouter::resolve has no peer for this host-defined node id.
Deliver(RemoteFrameError)
ThreadJoin
Trait Implementations§
Source§impl Debug for TransportError
impl Debug for TransportError
Source§impl Display for TransportError
impl Display for TransportError
Source§impl Error for TransportError
impl Error for TransportError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for TransportError
impl !UnwindSafe for TransportError
impl Forget for TransportError
impl Freeze for TransportError
impl Move for TransportError
impl Send for TransportError
impl Sync for TransportError
impl Unpin for TransportError
impl UnsafeUnpin for TransportError
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