pub enum BrickletTryRecvError {
QueueDisconnected,
QueueEmpty,
InvalidParameter,
FunctionNotSupported,
UnknownError,
MalformedPacket,
NotConnected,
SuccessButResponseExpectedIsDisabled,
}
Expand description
Error type which is returned if a try_recv
call fails.
Variants
QueueDisconnected
The queue was disconnected. This usually happens if the ip connection is destroyed.
QueueEmpty
There are currently no responses available.
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 BrickletTryRecvError
impl Clone for BrickletTryRecvError
sourcefn clone(&self) -> BrickletTryRecvError
fn clone(&self) -> BrickletTryRecvError
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 BrickletTryRecvError
impl Debug for BrickletTryRecvError
sourceimpl Display for BrickletTryRecvError
impl Display for BrickletTryRecvError
sourceimpl Error for BrickletTryRecvError
impl Error for BrickletTryRecvError
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<BrickletTryRecvError> for BrickletTryRecvError
impl PartialEq<BrickletTryRecvError> for BrickletTryRecvError
sourcefn eq(&self, other: &BrickletTryRecvError) -> bool
fn eq(&self, other: &BrickletTryRecvError) -> bool
impl Copy for BrickletTryRecvError
impl StructuralPartialEq for BrickletTryRecvError
Auto Trait Implementations
impl RefUnwindSafe for BrickletTryRecvError
impl Send for BrickletTryRecvError
impl Sync for BrickletTryRecvError
impl Unpin for BrickletTryRecvError
impl UnwindSafe for BrickletTryRecvError
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