pub enum BrickletError {
InvalidParameter,
FunctionNotSupported,
UnknownError,
NotConnected,
SuccessButResponseExpectedIsDisabled,
}
Expand description
Error type for interactions with Tinkerforge bricks or bricklets.
Variants§
InvalidParameter
A parameter was invalid or had an unexpected length
FunctionNotSupported
The brick or bricklet does not support the requested function.
UnknownError
Currently unused
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 BrickletError
impl Clone for BrickletError
source§fn clone(&self) -> BrickletError
fn clone(&self) -> BrickletError
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 BrickletError
impl Debug for BrickletError
source§impl Display for BrickletError
impl Display for BrickletError
source§impl Error for BrickletError
impl Error for BrickletError
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 From<u8> for BrickletError
impl From<u8> for BrickletError
source§fn from(byte: u8) -> BrickletError
fn from(byte: u8) -> BrickletError
Converts to this type from the input type.
impl Copy for BrickletError
Auto Trait Implementations§
impl RefUnwindSafe for BrickletError
impl Send for BrickletError
impl Sync for BrickletError
impl Unpin for BrickletError
impl UnwindSafe for BrickletError
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