pub enum SessionError {
Show 13 variants
Session(SessionError),
Write(WriteError),
Read(ReadError),
Encode(EncodeError),
Decode(DecodeError),
Version(Versions, Versions),
RoleIncompatible(Role, Role),
RoleViolation,
BoundsExceeded(BoundsExceeded),
Duplicate,
Internal,
Serve(ServeError),
WrongSize,
}
Variants§
Session(SessionError)
Write(WriteError)
Read(ReadError)
Encode(EncodeError)
Decode(DecodeError)
Version(Versions, Versions)
RoleIncompatible(Role, Role)
RoleViolation
The role negiotiated in the handshake was violated. For example, a publisher sent a SUBSCRIBE, or a subscriber sent an OBJECT.
BoundsExceeded(BoundsExceeded)
Some VarInt was too large and we were too lazy to handle it
Duplicate
A duplicate ID was used
Internal
Serve(ServeError)
WrongSize
Implementations§
Trait Implementations§
Source§impl Clone for SessionError
impl Clone for SessionError
Source§fn clone(&self) -> SessionError
fn clone(&self) -> SessionError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SessionError
impl Debug for SessionError
Source§impl Display for SessionError
impl Display for SessionError
Source§impl Error for SessionError
impl Error for SessionError
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<BoundsExceeded> for SessionError
impl From<BoundsExceeded> for SessionError
Source§fn from(source: BoundsExceeded) -> Self
fn from(source: BoundsExceeded) -> Self
Converts to this type from the input type.
Source§impl From<DecodeError> for SessionError
impl From<DecodeError> for SessionError
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<EncodeError> for SessionError
impl From<EncodeError> for SessionError
Source§fn from(source: EncodeError) -> Self
fn from(source: EncodeError) -> Self
Converts to this type from the input type.
Source§impl From<ReadError> for SessionError
impl From<ReadError> for SessionError
Source§impl From<ServeError> for SessionError
impl From<ServeError> for SessionError
Source§fn from(source: ServeError) -> Self
fn from(source: ServeError) -> Self
Converts to this type from the input type.
Source§impl From<SessionError> for ServeError
impl From<SessionError> for ServeError
Source§fn from(err: SessionError) -> Self
fn from(err: SessionError) -> Self
Converts to this type from the input type.
Source§impl From<SessionError> for SessionError
impl From<SessionError> for SessionError
Source§fn from(source: SessionError) -> Self
fn from(source: SessionError) -> Self
Converts to this type from the input type.
Source§impl From<WriteError> for SessionError
impl From<WriteError> for SessionError
Source§fn from(source: WriteError) -> Self
fn from(source: WriteError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for SessionError
impl !RefUnwindSafe for SessionError
impl Send for SessionError
impl Sync for SessionError
impl Unpin for SessionError
impl !UnwindSafe for SessionError
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