Struct web_thread::web::message::RawMessage
source · pub struct RawMessage<T> {
pub serialize: Option<JsValue>,
pub send: Option<T>,
}
Available on
Web
and crate feature message
only.Expand description
Contains data necessary to send MessageSend
to another thread.
Fields§
§serialize: Option<JsValue>
Value to be serialized.
send: Option<T>
Send
value.
Trait Implementations§
source§impl<T: Debug> Debug for RawMessage<T>
impl<T: Debug> Debug for RawMessage<T>
source§impl<T: PartialEq> PartialEq for RawMessage<T>
impl<T: PartialEq> PartialEq for RawMessage<T>
impl<T> StructuralPartialEq for RawMessage<T>
Auto Trait Implementations§
impl<T> Freeze for RawMessage<T>where
T: Freeze,
impl<T> RefUnwindSafe for RawMessage<T>where
T: RefUnwindSafe,
impl<T> !Send for RawMessage<T>
impl<T> !Sync for RawMessage<T>
impl<T> Unpin for RawMessage<T>where
T: Unpin,
impl<T> UnwindSafe for RawMessage<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