pub struct Args {
pub args: Vec<Value>,
pub binary: Vec<Vec<u8>>,
}Expand description
Event arguments over the IPC: JSON args, and the binary attachments that the
{"_placeholder":true,"num":n} objects in args stand for (socket.io-parser’s encoding).
Bytes travel as arrays of numbers; guest-js turns them into Uint8Arrays and back.
Fields§
§args: Vec<Value>The JSON arguments, placeholders included.
binary: Vec<Vec<u8>>The attachments; empty when the arguments have no binary data.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Args
impl<'de> Deserialize<'de> for Args
Source§fn 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
impl StructuralPartialEq for Args
Auto Trait Implementations§
impl Forget for Args
impl Freeze for Args
impl Move for Args
impl RefUnwindSafe for Args
impl Send for Args
impl Sync for Args
impl Unpin for Args
impl UnsafeUnpin for Args
impl UnwindSafe for Args
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