pub enum ReceiveDeserializedMessageError {
LostMessages(u64),
CannotDeserializeMessage(String),
}
Expand description
Error type returned when reading a deserializable message from a messages stream.
Variants§
LostMessages(u64)
Error indicating that some buffered messages were deleted due to buffer capacity overflow.
See ReceiveMessageError
for more information.
CannotDeserializeMessage(String)
Error indicating that a message cannot be deserialized from bytes. Includes error message.
Trait Implementations§
Source§impl Error for ReceiveDeserializedMessageError
impl Error for ReceiveDeserializedMessageError
1.30.0 · 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<ReceiveMessageError> for ReceiveDeserializedMessageError
impl From<ReceiveMessageError> for ReceiveDeserializedMessageError
Source§fn from(value: ReceiveMessageError) -> Self
fn from(value: ReceiveMessageError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ReceiveDeserializedMessageError
impl RefUnwindSafe for ReceiveDeserializedMessageError
impl Send for ReceiveDeserializedMessageError
impl Sync for ReceiveDeserializedMessageError
impl Unpin for ReceiveDeserializedMessageError
impl UnwindSafe for ReceiveDeserializedMessageError
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