pub enum WireError {
FrameTooLong(FrameTooLong),
FrameTooShort(FrameTooShort),
DeserFailed,
SerFailed,
UnknownKey,
FailedToSpawn,
KeyTooSmall,
}
Expand description
A protocol error that is handled outside of the normal request type, usually indicating a protocol-level error
Variants§
FrameTooLong(FrameTooLong)
The frame exceeded the buffering capabilities of the server
FrameTooShort(FrameTooShort)
The frame was shorter than the minimum frame size and was rejected
DeserFailed
Deserialization of a message failed
SerFailed
Serialization of a message failed, usually due to a lack of space to buffer the serialized form
UnknownKey
The key associated with this request was unknown
FailedToSpawn
The server was unable to spawn the associated handler, typically due to an exhaustion of resources
KeyTooSmall
The provided key is below the minimum key size calculated to avoid hash collisions, and was rejected to avoid potential misunderstanding
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WireError
impl<'de> Deserialize<'de> for WireError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for WireError
Auto Trait Implementations§
impl Freeze for WireError
impl RefUnwindSafe for WireError
impl Send for WireError
impl Sync for WireError
impl Unpin for WireError
impl UnwindSafe for WireError
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