#[repr(i32)]pub enum ExceptionCode {
Show 13 variants
None = 0,
Security = -1,
BadParcelable = -2,
IllegalArgument = -3,
NullPointer = -4,
IllegalState = -5,
NetworkMainThread = -6,
UnsupportedOperation = -7,
ServiceSpecific = -8,
Parcelable = -9,
HasReplyHeader = -128,
TransactionFailed = -129,
JustError = -256,
}
Expand description
Exception codes for binder operations.
These codes represent different types of exceptions that can occur during binder transactions, corresponding to Java exception types in the Android framework.
Variants§
None = 0
No exception occurred
Security = -1
Security exception
BadParcelable = -2
Bad parcelable data
IllegalArgument = -3
Illegal argument provided
NullPointer = -4
Null pointer exception
IllegalState = -5
Illegal state exception
NetworkMainThread = -6
Network operation on main thread
UnsupportedOperation = -7
Unsupported operation
ServiceSpecific = -8
Service-specific exception
Parcelable = -9
Parcelable exception
HasReplyHeader = -128
Has reply header (Java-specific)
TransactionFailed = -129
Transaction failed at low level
JustError = -256
Generic error
Trait Implementations§
Source§impl Clone for ExceptionCode
impl Clone for ExceptionCode
Source§fn clone(&self) -> ExceptionCode
fn clone(&self) -> ExceptionCode
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 ExceptionCode
impl Debug for ExceptionCode
Source§impl Deserialize for ExceptionCode
impl Deserialize for ExceptionCode
Source§impl Display for ExceptionCode
impl Display for ExceptionCode
Source§impl From<ExceptionCode> for Status
impl From<ExceptionCode> for Status
Source§fn from(exception: ExceptionCode) -> Self
fn from(exception: ExceptionCode) -> Self
Converts to this type from the input type.
Source§impl From<ExceptionCode> for StatusCode
impl From<ExceptionCode> for StatusCode
Source§fn from(exception: ExceptionCode) -> Self
fn from(exception: ExceptionCode) -> Self
Converts to this type from the input type.
Source§impl From<StatusCode> for ExceptionCode
impl From<StatusCode> for ExceptionCode
Source§fn from(status: StatusCode) -> Self
fn from(status: StatusCode) -> Self
Converts to this type from the input type.
Source§impl Hash for ExceptionCode
impl Hash for ExceptionCode
Source§impl Ord for ExceptionCode
impl Ord for ExceptionCode
Source§fn cmp(&self, other: &ExceptionCode) -> Ordering
fn cmp(&self, other: &ExceptionCode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ExceptionCode
impl PartialEq for ExceptionCode
Source§impl PartialOrd for ExceptionCode
impl PartialOrd for ExceptionCode
Source§impl Serialize for ExceptionCode
impl Serialize for ExceptionCode
impl Copy for ExceptionCode
impl Eq for ExceptionCode
impl StructuralPartialEq for ExceptionCode
Auto Trait Implementations§
impl Freeze for ExceptionCode
impl RefUnwindSafe for ExceptionCode
impl Send for ExceptionCode
impl Sync for ExceptionCode
impl Unpin for ExceptionCode
impl UnwindSafe for ExceptionCode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
, which can then be
downcast
into Box<dyn ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
, which can then be further
downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.