pub struct DartSignalPack<T> {
pub message: T,
pub binary: Vec<u8>,
}Expand description
This contains a message from Dart.
Optionally, a custom binary called binary can also be included.
Fields§
§message: TThe message instance.
binary: Vec<u8>Binary data included in the signal. This field is useful for sending custom bytes without the overhead of serialization/deserialization.
Auto Trait Implementations§
impl<T> Freeze for DartSignalPack<T>where
T: Freeze,
impl<T> RefUnwindSafe for DartSignalPack<T>where
T: RefUnwindSafe,
impl<T> Send for DartSignalPack<T>where
T: Send,
impl<T> Sync for DartSignalPack<T>where
T: Sync,
impl<T> Unpin for DartSignalPack<T>where
T: Unpin,
impl<T> UnwindSafe for DartSignalPack<T>where
T: UnwindSafe,
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