pub enum CarrierError {
Lifecycle(String),
Io(Error),
Protocol(ProtocolError),
Subject(SubjectBindingError),
TooLarge {
bytes: usize,
bound: usize,
},
UnexpectedFrame,
Ended,
}Expand description
Why a carrier could not move a frame.
Variants§
Lifecycle(String)
The carrier’s owned lifecycle or reader could not continue.
Io(Error)
A socket operation failed; credential and message bytes are excluded.
Protocol(ProtocolError)
The canonical codec refused a frame.
Subject(SubjectBindingError)
The subject is not a placed name.
TooLarge
A peer’s declared frame exceeded the allocation bound.
UnexpectedFrame
The peer answered with a different frame or stream.
Ended
Sending after an observed carrier end was refused.
Trait Implementations§
Source§impl Debug for CarrierError
impl Debug for CarrierError
Source§impl Display for CarrierError
impl Display for CarrierError
Source§impl Error for CarrierError
impl Error for CarrierError
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 From<CarrierError> for LinkDialError
impl From<CarrierError> for LinkDialError
Source§fn from(source: CarrierError) -> Self
fn from(source: CarrierError) -> Self
Converts to this type from the input type.
Source§impl From<CarrierError> for PunchError
impl From<CarrierError> for PunchError
Source§fn from(source: CarrierError) -> Self
fn from(source: CarrierError) -> Self
Converts to this type from the input type.
Source§impl From<CarrierError> for RelayOpenError
impl From<CarrierError> for RelayOpenError
Source§fn from(source: CarrierError) -> Self
fn from(source: CarrierError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for CarrierError
impl From<Error> for CarrierError
Source§impl From<ProtocolError> for CarrierError
impl From<ProtocolError> for CarrierError
Source§fn from(source: ProtocolError) -> Self
fn from(source: ProtocolError) -> Self
Converts to this type from the input type.
Source§impl From<SubjectBindingError> for CarrierError
impl From<SubjectBindingError> for CarrierError
Source§fn from(source: SubjectBindingError) -> Self
fn from(source: SubjectBindingError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for CarrierError
impl !UnwindSafe for CarrierError
impl Freeze for CarrierError
impl Send for CarrierError
impl Sync for CarrierError
impl Unpin for CarrierError
impl UnsafeUnpin for CarrierError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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