Struct tauri::ipc::InvokeError
source · pub struct InvokeError(pub Value);
Expand description
Error response from an InvokeMessage
.
Tuple Fields§
§0: Value
Implementations§
source§impl InvokeError
impl InvokeError
sourcepub fn from_error<E: Error>(error: E) -> Self
pub fn from_error<E: Error>(error: E) -> Self
Create an InvokeError
as a string of the std::error::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 Freeze for InvokeError
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