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
sourceimpl Clone for BrickletError
impl Clone for BrickletError
sourcefn clone(&self) -> BrickletError
fn clone(&self) -> BrickletError
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 BrickletError
impl Debug for BrickletError
sourceimpl Display for BrickletError
impl Display for BrickletError
sourceimpl Error for BrickletError
impl Error for BrickletError
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 From<u8> for BrickletError
impl From<u8> for BrickletError
sourcefn 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
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