pub enum CallbackRecvTimeoutError {
QueueDisconnected,
QueueTimeout,
MalformedPacket,
}
Expand description
Error type which is returned if a recv_timeout
call fails.
Variants§
QueueDisconnected
The queue was disconnected. This usually happens if the ip connection is destroyed.
QueueTimeout
The request could not be responded to before the timeout was reached.
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 CallbackRecvTimeoutError
impl Clone for CallbackRecvTimeoutError
source§fn clone(&self) -> CallbackRecvTimeoutError
fn clone(&self) -> CallbackRecvTimeoutError
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 CallbackRecvTimeoutError
impl Debug for CallbackRecvTimeoutError
source§impl Display for CallbackRecvTimeoutError
impl Display for CallbackRecvTimeoutError
source§impl Error for CallbackRecvTimeoutError
impl Error for CallbackRecvTimeoutError
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 CallbackRecvTimeoutError
impl PartialEq for CallbackRecvTimeoutError
source§fn eq(&self, other: &CallbackRecvTimeoutError) -> bool
fn eq(&self, other: &CallbackRecvTimeoutError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for CallbackRecvTimeoutError
impl StructuralPartialEq for CallbackRecvTimeoutError
Auto Trait Implementations§
impl RefUnwindSafe for CallbackRecvTimeoutError
impl Send for CallbackRecvTimeoutError
impl Sync for CallbackRecvTimeoutError
impl Unpin for CallbackRecvTimeoutError
impl UnwindSafe for CallbackRecvTimeoutError
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