pub struct OperationError {
pub code: OpStatusCode,
pub error_message: String,
pub data: Option<String>,
}
Expand description
Final Operation Error
Fields§
§code: OpStatusCode
§error_message: String
§data: Option<String>
Implementations§
Source§impl OperationError
impl OperationError
pub fn new_with_message(code: OpStatusCode, message: String) -> Self
Trait Implementations§
Source§impl Debug for OperationError
impl Debug for OperationError
Source§impl Display for OperationError
impl Display for OperationError
Source§impl From<OpStatusCode> for OperationError
impl From<OpStatusCode> for OperationError
Source§fn from(e: OpStatusCode) -> Self
fn from(e: OpStatusCode) -> Self
Converts to this type from the input type.
Source§impl From<OperationError> for JsValue
impl From<OperationError> for JsValue
Source§fn from(value: OperationError) -> Self
fn from(value: OperationError) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for OperationError
impl FromWasmAbi for OperationError
Source§impl IntoWasmAbi for OperationError
impl IntoWasmAbi for OperationError
Source§impl LongRefFromWasmAbi for OperationError
impl LongRefFromWasmAbi for OperationError
Source§impl OptionFromWasmAbi for OperationError
impl OptionFromWasmAbi for OperationError
Source§impl OptionIntoWasmAbi for OperationError
impl OptionIntoWasmAbi for OperationError
Source§impl PartialEq for OperationError
impl PartialEq for OperationError
Source§impl RefFromWasmAbi for OperationError
impl RefFromWasmAbi for OperationError
Source§type Anchor = RcRef<OperationError>
type Anchor = RcRef<OperationError>
The type that holds the reference to
Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl RefMutFromWasmAbi for OperationError
impl RefMutFromWasmAbi for OperationError
Source§impl TryFromJsValue for OperationError
impl TryFromJsValue for OperationError
Source§impl VectorFromWasmAbi for OperationError
impl VectorFromWasmAbi for OperationError
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[OperationError]>
Source§impl VectorIntoJsValue for OperationError
impl VectorIntoJsValue for OperationError
fn vector_into_jsvalue(vector: Box<[OperationError]>) -> JsValue
Source§impl VectorIntoWasmAbi for OperationError
impl VectorIntoWasmAbi for OperationError
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[OperationError]>) -> Self::Abi
Source§impl WasmDescribeVector for OperationError
impl WasmDescribeVector for OperationError
impl Eq for OperationError
impl StructuralPartialEq for OperationError
impl SupportsConstructor for OperationError
impl SupportsInstanceProperty for OperationError
impl SupportsStaticProperty for OperationError
Auto Trait Implementations§
impl Freeze for OperationError
impl RefUnwindSafe for OperationError
impl Send for OperationError
impl Sync for OperationError
impl Unpin for OperationError
impl UnwindSafe for OperationError
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
Source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.