pub enum JniBindingError<T> {
JniError(String),
UserError(T),
}Expand description
Framework error type for the JNI binding’s error channel. T is the
function’s domain error (() for the E-agnostic framework converters, whose
failures are always Self::JniError).
Variants§
JniError(String)
A binding-layer failure, carrying a context message.
UserError(T)
The wrapped function’s domain error.
Trait Implementations§
Source§impl<T: Clone> Clone for JniBindingError<T>
impl<T: Clone> Clone for JniBindingError<T>
Source§fn clone(&self) -> JniBindingError<T>
fn clone(&self) -> JniBindingError<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T> Debug for JniBindingError<T>
impl<T> Debug for JniBindingError<T>
Source§impl<T> Display for JniBindingError<T>
impl<T> Display for JniBindingError<T>
Auto Trait Implementations§
impl<T> Freeze for JniBindingError<T>where
T: Freeze,
impl<T> RefUnwindSafe for JniBindingError<T>where
T: RefUnwindSafe,
impl<T> Send for JniBindingError<T>where
T: Send,
impl<T> Sync for JniBindingError<T>where
T: Sync,
impl<T> Unpin for JniBindingError<T>where
T: Unpin,
impl<T> UnsafeUnpin for JniBindingError<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for JniBindingError<T>where
T: UnwindSafe,
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