Enum tauri::ipc::InvokeBody
source · pub enum InvokeBody {
Json(Value),
Raw(Vec<u8>),
}Expand description
Possible values of an IPC payload.
Variants§
Implementations§
source§impl InvokeBody
impl InvokeBody
sourcepub fn deserialize<T: DeserializeOwned>(self) -> Result<T>
pub fn deserialize<T: DeserializeOwned>(self) -> Result<T>
Attempts to deserialize the invoke body.
Trait Implementations§
source§impl Clone for InvokeBody
impl Clone for InvokeBody
source§fn clone(&self) -> InvokeBody
fn clone(&self) -> InvokeBody
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for InvokeBody
impl Debug for InvokeBody
source§impl Default for InvokeBody
impl Default for InvokeBody
source§impl From<Value> for InvokeBody
impl From<Value> for InvokeBody
source§impl IpcResponse for InvokeBody
impl IpcResponse for InvokeBody
source§fn body(self) -> Result<InvokeBody>
fn body(self) -> Result<InvokeBody>
Resolve the IPC response body.
Auto Trait Implementations§
impl Freeze for InvokeBody
impl RefUnwindSafe for InvokeBody
impl Send for InvokeBody
impl Sync for InvokeBody
impl Unpin for InvokeBody
impl UnwindSafe for InvokeBody
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)