pub enum NativeError {
GattError(AttError),
BluetoothStatusCode(BluetoothStatusCode),
JavaError(Global<Throwable>),
JavaCastError,
JavaNullResult,
JavaCallReturnedFalse,
}Expand description
Internal error type, not compatible with bluest::Error.
Variants§
GattError(AttError)
BluetoothStatusCode(BluetoothStatusCode)
JavaError(Global<Throwable>)
JavaCastError
JavaNullResult
JavaCallReturnedFalse
Trait Implementations§
Source§impl Clone for NativeError
impl Clone for NativeError
Source§fn clone(&self) -> NativeError
fn clone(&self) -> NativeError
Returns a duplicate 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 NativeError
impl Debug for NativeError
Source§impl Display for NativeError
impl Display for NativeError
Source§impl Error for NativeError
impl Error for NativeError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<AttError> for NativeError
impl From<AttError> for NativeError
Source§impl From<CastError> for NativeError
impl From<CastError> for NativeError
Source§impl From<Local<'_, Throwable>> for NativeError
impl From<Local<'_, Throwable>> for NativeError
Source§impl From<NativeError> for Error
impl From<NativeError> for Error
Source§fn from(err: NativeError) -> Self
fn from(err: NativeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NativeError
impl RefUnwindSafe for NativeError
impl Send for NativeError
impl Sync for NativeError
impl Unpin for NativeError
impl UnsafeUnpin for NativeError
impl UnwindSafe for NativeError
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