Enum bluez_async_ots::Error
source · pub enum Error {
Show 16 variants
IoError(Error),
BtError(BluetoothError),
Utf8Error(Utf8Error),
UuidError(Error),
NotSupported,
NotFound,
NoResponse,
BadResponse,
BadUuidSize(usize),
Timeout,
ListError(ListRc),
ActionError(ActionRc),
InvalidProps(u32),
InvalidDirFlags(u8),
NotEnoughData {
actual: usize,
needed: usize,
},
BadOpCode {
type_: OpType,
code: u8,
},
}Expand description
OTS client error
Variants§
IoError(Error)
Input/output error
BtError(BluetoothError)
Bluetooth error
Utf8Error(Utf8Error)
UTF-8 decoding error
UuidError(Error)
UUID decoding error
NotSupported
Not supported function requested
NotFound
Object not found
NoResponse
No response received
BadResponse
Invalid response received
BadUuidSize(usize)
Invalid UUID size
Timeout
Timeout reached
ListError(ListRc)
Object list operation failed
ActionError(ActionRc)
Object action operation failed
InvalidProps(u32)
Invalid properties received
InvalidDirFlags(u8)
Invalid directory flags received
NotEnoughData
Not enough data to parse
BadOpCode
Invalid operation code received
Trait Implementations§
source§impl Error for Error
impl Error for Error
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
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<BluetoothError> for Error
impl From<BluetoothError> for Error
source§fn from(source: BluetoothError) -> Self
fn from(source: BluetoothError) -> Self
Converts to this type from the input type.
source§impl From<FromUtf8Error> for Error
impl From<FromUtf8Error> for Error
source§fn from(err: FromUtf8Error) -> Self
fn from(err: FromUtf8Error) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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