pub enum V1_5ReadError {
NotEnoughData,
UnsupportedAuthType(u8),
IncorrectPayloadLen,
AuthcodeError,
}Variants§
NotEnoughData
There is not enough data in the packet to form a valid [EncapsulatedMessage].
UnsupportedAuthType(u8)
The auth type provided is not supported.
IncorrectPayloadLen
There is a mismatch between the payload length field and the actual length of the payload.
AuthcodeError
The auth code of the message is not correct.
Trait Implementations§
Source§impl From<ReadError> for UnwrapSessionError
impl From<ReadError> for UnwrapSessionError
Source§fn from(value: V1_5ReadError) -> Self
fn from(value: V1_5ReadError) -> Self
Converts to this type from the input type.
impl Copy for ReadError
impl StructuralPartialEq for ReadError
Auto Trait Implementations§
impl Freeze for ReadError
impl RefUnwindSafe for ReadError
impl Send for ReadError
impl Sync for ReadError
impl Unpin for ReadError
impl UnwindSafe for ReadError
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