Struct tauri::InvokePayload
source · [−]pub struct InvokePayload {
pub cmd: String,
pub callback: CallbackFn,
pub error: CallbackFn,
pub inner: JsonValue,
/* private fields */
}Expand description
The payload used on the IPC invoke.
Fields
cmd: StringThe invoke command.
callback: CallbackFnThe success callback.
error: CallbackFnThe error callback.
inner: JsonValueThe payload of the message.
Trait Implementations
sourceimpl Debug for InvokePayload
impl Debug for InvokePayload
sourceimpl<'de> Deserialize<'de> for InvokePayload
impl<'de> Deserialize<'de> for InvokePayload
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for InvokePayload
impl Send for InvokePayload
impl Sync for InvokePayload
impl Unpin for InvokePayload
impl UnwindSafe for InvokePayload
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
sourceimpl<'de, D, R> CommandArg<'de, R> for D where
D: Deserialize<'de>,
R: Runtime,
impl<'de, D, R> CommandArg<'de, R> for D where
D: Deserialize<'de>,
R: Runtime,
sourcefn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
Derives an instance of Self from the CommandItem. Read more