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
sourceimpl Clone for CallbackRecvError
impl Clone for CallbackRecvError
sourcefn clone(&self) -> CallbackRecvError
fn clone(&self) -> CallbackRecvError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for CallbackRecvError
impl Debug for CallbackRecvError
sourceimpl Display for CallbackRecvError
impl Display for CallbackRecvError
sourceimpl Error for CallbackRecvError
impl Error for CallbackRecvError
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourceimpl PartialEq<CallbackRecvError> for CallbackRecvError
impl PartialEq<CallbackRecvError> for CallbackRecvError
sourcefn eq(&self, other: &CallbackRecvError) -> bool
fn eq(&self, other: &CallbackRecvError) -> bool
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more