pub enum CallbackRecvError {
QueueDisconnected,
MalformedPacket,
}
Expand description
Error type which is returned if a recv_forever
call fails.
Variants§
QueueDisconnected
The queue was disconnected. This usually happens if the ip connection is destroyed.
MalformedPacket
The received packet had an unexpected length. Maybe a function was called on a wrong brick or bricklet?
Trait Implementations§
source§impl Clone for CallbackRecvError
impl Clone for CallbackRecvError
source§fn clone(&self) -> CallbackRecvError
fn clone(&self) -> CallbackRecvError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CallbackRecvError
impl Debug for CallbackRecvError
source§impl Display for CallbackRecvError
impl Display for CallbackRecvError
source§impl Error for CallbackRecvError
impl Error for CallbackRecvError
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
source§impl PartialEq for CallbackRecvError
impl PartialEq for CallbackRecvError
source§fn eq(&self, other: &CallbackRecvError) -> bool
fn eq(&self, other: &CallbackRecvError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for CallbackRecvError
impl StructuralPartialEq for CallbackRecvError
Auto Trait Implementations§
impl RefUnwindSafe for CallbackRecvError
impl Send for CallbackRecvError
impl Sync for CallbackRecvError
impl Unpin for CallbackRecvError
impl UnwindSafe for CallbackRecvError
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