pub enum ProtocolError {
CryptoError,
InvalidMessage,
InvalidPrologue,
}
Expand description
A protocol error type.
Variants§
CryptoError
An error in the crypto abstraction layer
InvalidMessage
On receiving an unexpected message, i.e. one that does not allow a state transition from the current state.
InvalidPrologue
On receiving invalid initialization data.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProtocolError
impl RefUnwindSafe for ProtocolError
impl Send for ProtocolError
impl Sync for ProtocolError
impl Unpin for ProtocolError
impl UnwindSafe for ProtocolError
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