pub enum InvokeBody {
Json(Value),
Raw(Vec<u8>),
}Expand description
Possible values of an IPC payload.
§Android
On Android, InvokeBody::Raw is not supported. The enum will always contain InvokeBody::Json. When targeting Android Devices, consider passing raw bytes as a base64 [std::string::String], which is still more efficient than passing them as a number array in InvokeBody::Json
Variants§
Trait Implementations§
Source§impl Clone for InvokeBody
impl Clone for InvokeBody
Source§fn clone(&self) -> InvokeBody
fn clone(&self) -> InvokeBody
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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<InvokeBody> for InvokeResponseBody
impl From<InvokeBody> for InvokeResponseBody
Source§fn from(value: InvokeBody) -> Self
fn from(value: InvokeBody) -> Self
Converts to this type from the input type.
Source§impl From<Value> for InvokeBody
impl From<Value> for InvokeBody
Auto Trait Implementations§
impl Freeze for InvokeBody
impl RefUnwindSafe for InvokeBody
impl Send for InvokeBody
impl Sync for InvokeBody
impl Unpin for InvokeBody
impl UnsafeUnpin 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