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
sourceimpl Clone for BrickletRecvTimeoutError
impl Clone for BrickletRecvTimeoutError
sourcefn clone(&self) -> BrickletRecvTimeoutError
fn clone(&self) -> BrickletRecvTimeoutError
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 BrickletRecvTimeoutError
impl Debug for BrickletRecvTimeoutError
sourceimpl Display for BrickletRecvTimeoutError
impl Display for BrickletRecvTimeoutError
sourceimpl Error for BrickletRecvTimeoutError
impl Error for BrickletRecvTimeoutError
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<BrickletRecvTimeoutError> for BrickletRecvTimeoutError
impl PartialEq<BrickletRecvTimeoutError> for BrickletRecvTimeoutError
sourcefn eq(&self, other: &BrickletRecvTimeoutError) -> bool
fn eq(&self, other: &BrickletRecvTimeoutError) -> bool
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
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