pub enum BrickletRecvTimeoutError {
QueueDisconnected,
QueueTimeout,
InvalidParameter,
FunctionNotSupported,
UnknownError,
MalformedPacket,
NotConnected,
SuccessButResponseExpectedIsDisabled,
}
Expand description
Error type which is returned if a ConvertingReceiver::recv 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.
InvalidParameter
A parameter was invalid or had an unexpected length.
FunctionNotSupported
The brick or bricklet does not support the requested function.
UnknownError
Currently unused
MalformedPacket
The received packet had an unexpected length. Maybe a function was called on a wrong brick or bricklet?
NotConnected
The request can not be fulfulled, as there is currently no connection to a brick daemon.
SuccessButResponseExpectedIsDisabled
The request was sent, but response expected is disabled, so no response can be received. This is not an error.
Trait Implementations§
source§impl Clone for BrickletRecvTimeoutError
impl Clone for BrickletRecvTimeoutError
source§fn clone(&self) -> BrickletRecvTimeoutError
fn clone(&self) -> BrickletRecvTimeoutError
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 BrickletRecvTimeoutError
impl Debug for BrickletRecvTimeoutError
source§impl Display for BrickletRecvTimeoutError
impl Display for BrickletRecvTimeoutError
source§impl Error for BrickletRecvTimeoutError
impl Error for BrickletRecvTimeoutError
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 BrickletRecvTimeoutError
impl PartialEq for BrickletRecvTimeoutError
source§fn eq(&self, other: &BrickletRecvTimeoutError) -> bool
fn eq(&self, other: &BrickletRecvTimeoutError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for BrickletRecvTimeoutError
impl StructuralPartialEq for BrickletRecvTimeoutError
Auto Trait Implementations§
impl RefUnwindSafe for BrickletRecvTimeoutError
impl Send for BrickletRecvTimeoutError
impl Sync for BrickletRecvTimeoutError
impl Unpin for BrickletRecvTimeoutError
impl UnwindSafe for BrickletRecvTimeoutError
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