pub struct OutgoingMessage {
pub payload: Vec<u8>,
pub destination: Endpoint,
pub topic: Option<String>,
}
Fields§
§payload: Vec<u8>
§destination: Endpoint
§topic: Option<String>
Implementations§
Trait Implementations§
Source§impl Clone for OutgoingMessage
impl Clone for OutgoingMessage
Source§fn clone(&self) -> OutgoingMessage
fn clone(&self) -> OutgoingMessage
Returns a copy of the value. Read more
1.0.0 · 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 OutgoingMessage
impl Debug for OutgoingMessage
Source§impl<'de> Deserialize<'de> for OutgoingMessage
impl<'de> Deserialize<'de> for OutgoingMessage
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
Source§impl From<OutgoingMessage> for JsValue
impl From<OutgoingMessage> for JsValue
Source§fn from(value: OutgoingMessage) -> Self
fn from(value: OutgoingMessage) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for OutgoingMessage
impl FromWasmAbi for OutgoingMessage
Source§impl IntoWasmAbi for OutgoingMessage
impl IntoWasmAbi for OutgoingMessage
Source§impl LongRefFromWasmAbi for OutgoingMessage
impl LongRefFromWasmAbi for OutgoingMessage
Source§impl OptionFromWasmAbi for OutgoingMessage
impl OptionFromWasmAbi for OutgoingMessage
Source§impl OptionIntoWasmAbi for OutgoingMessage
impl OptionIntoWasmAbi for OutgoingMessage
Source§impl RefFromWasmAbi for OutgoingMessage
impl RefFromWasmAbi for OutgoingMessage
Source§type Anchor = RcRef<OutgoingMessage>
type Anchor = RcRef<OutgoingMessage>
The type that holds the reference to
Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl RefMutFromWasmAbi for OutgoingMessage
impl RefMutFromWasmAbi for OutgoingMessage
Source§impl Serialize for OutgoingMessage
impl Serialize for OutgoingMessage
Source§impl<Payload> TryFrom<OutgoingMessage> for TypedOutgoingMessage<Payload>
impl<Payload> TryFrom<OutgoingMessage> for TypedOutgoingMessage<Payload>
Source§impl<Payload> TryFrom<TypedOutgoingMessage<Payload>> for OutgoingMessage
impl<Payload> TryFrom<TypedOutgoingMessage<Payload>> for OutgoingMessage
Source§impl TryFromJsValue for OutgoingMessage
impl TryFromJsValue for OutgoingMessage
Source§impl VectorFromWasmAbi for OutgoingMessage
impl VectorFromWasmAbi for OutgoingMessage
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[OutgoingMessage]>
Source§impl VectorIntoJsValue for OutgoingMessage
impl VectorIntoJsValue for OutgoingMessage
fn vector_into_jsvalue(vector: Box<[OutgoingMessage]>) -> JsValue
Source§impl VectorIntoWasmAbi for OutgoingMessage
impl VectorIntoWasmAbi for OutgoingMessage
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[OutgoingMessage]>) -> Self::Abi
Source§impl WasmDescribe for OutgoingMessage
impl WasmDescribe for OutgoingMessage
impl SupportsConstructor for OutgoingMessage
impl SupportsInstanceProperty for OutgoingMessage
impl SupportsStaticProperty for OutgoingMessage
Auto Trait Implementations§
impl Freeze for OutgoingMessage
impl RefUnwindSafe for OutgoingMessage
impl Send for OutgoingMessage
impl Sync for OutgoingMessage
impl Unpin for OutgoingMessage
impl UnwindSafe for OutgoingMessage
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
Source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.