pub enum PsecError {
BrokenPipe,
ConnectionReset,
TransmissionCorrupted,
BufferTooLarge,
UnexpectedEof,
IoError {
error_kind: ErrorKind,
},
BadPadding,
}
Expand description
Errors that can be returned by PSEC operations.
Variants§
BrokenPipe
The operation failed because a pipe was closed.
ConnectionReset
The connection was reset by the remote peer.
TransmissionCorrupted
Authentication error. It often means that the AES GCM tag was invalid during a decryption operation.
BufferTooLarge
The received buffer was too large and was discarded to prevent DOS attacks.
UnexpectedEof
Failed to read the desired amout of bytes.
IoError
An unknown error occurred while reading or writing to the underlying TcpStream
.
BadPadding
The plain text was not properly padded.
Trait Implementations§
impl Eq for PsecError
impl StructuralPartialEq for PsecError
Auto Trait Implementations§
impl Freeze for PsecError
impl RefUnwindSafe for PsecError
impl Send for PsecError
impl Sync for PsecError
impl Unpin for PsecError
impl UnwindSafe for PsecError
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