Struct tauri::InvokeError
source · [−]pub struct InvokeError(_);
Expand description
Error response from an InvokeMessage
.
Implementations
sourceimpl InvokeError
impl InvokeError
sourcepub fn from_serde_json(error: Error) -> Self
pub fn from_serde_json(error: Error) -> Self
Create an InvokeError
as a string of the serde_json::Error
message.
sourcepub fn from_anyhow(error: Error) -> Self
pub fn from_anyhow(error: Error) -> Self
Create an InvokeError
as a string of the anyhow::Error
message.
Trait Implementations
sourceimpl Debug for InvokeError
impl Debug for InvokeError
sourceimpl From<Error> for InvokeError
impl From<Error> for InvokeError
sourceimpl From<InvokeError> for InvokeResponse
impl From<InvokeError> for InvokeResponse
sourcefn from(error: InvokeError) -> Self
fn from(error: InvokeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for InvokeError
impl Send for InvokeError
impl Sync for InvokeError
impl Unpin for InvokeError
impl UnwindSafe for InvokeError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more