Struct tauri::InvokeError
source · pub struct InvokeError(/* private fields */);
Expand description
Error response from an InvokeMessage
.
Implementations§
source§impl 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§
source§impl Debug for InvokeError
impl Debug for InvokeError
source§impl From<Error> for InvokeError
impl From<Error> for InvokeError
source§impl From<InvokeError> for InvokeResponse
impl From<InvokeError> for InvokeResponse
source§fn 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§
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