pub struct IncomingMessage {
pub payload: Vec<u8>,
pub destination: Endpoint,
pub source: Endpoint,
pub topic: Option<String>,
}
Fields§
§payload: Vec<u8>
§destination: Endpoint
§source: Endpoint
§topic: Option<String>
Implementations§
Trait Implementations§
Source§impl Clone for IncomingMessage
impl Clone for IncomingMessage
Source§fn clone(&self) -> IncomingMessage
fn clone(&self) -> IncomingMessage
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 IncomingMessage
impl Debug for IncomingMessage
Source§impl<'de> Deserialize<'de> for IncomingMessage
impl<'de> Deserialize<'de> for IncomingMessage
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<IncomingMessage> for JsValue
impl From<IncomingMessage> for JsValue
Source§fn from(value: IncomingMessage) -> Self
fn from(value: IncomingMessage) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for IncomingMessage
impl FromWasmAbi for IncomingMessage
Source§impl IntoWasmAbi for IncomingMessage
impl IntoWasmAbi for IncomingMessage
Source§impl LongRefFromWasmAbi for IncomingMessage
impl LongRefFromWasmAbi for IncomingMessage
Source§impl OptionFromWasmAbi for IncomingMessage
impl OptionFromWasmAbi for IncomingMessage
Source§impl OptionIntoWasmAbi for IncomingMessage
impl OptionIntoWasmAbi for IncomingMessage
Source§impl RefFromWasmAbi for IncomingMessage
impl RefFromWasmAbi for IncomingMessage
Source§type Anchor = RcRef<IncomingMessage>
type Anchor = RcRef<IncomingMessage>
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 IncomingMessage
impl RefMutFromWasmAbi for IncomingMessage
Source§impl Serialize for IncomingMessage
impl Serialize for IncomingMessage
Source§impl<Payload> TryFrom<IncomingMessage> for TypedIncomingMessage<Payload>
impl<Payload> TryFrom<IncomingMessage> for TypedIncomingMessage<Payload>
Source§impl<Payload> TryFrom<TypedIncomingMessage<Payload>> for IncomingMessage
impl<Payload> TryFrom<TypedIncomingMessage<Payload>> for IncomingMessage
Source§impl TryFromJsValue for IncomingMessage
impl TryFromJsValue for IncomingMessage
Source§impl VectorFromWasmAbi for IncomingMessage
impl VectorFromWasmAbi for IncomingMessage
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[IncomingMessage]>
Source§impl VectorIntoJsValue for IncomingMessage
impl VectorIntoJsValue for IncomingMessage
fn vector_into_jsvalue(vector: Box<[IncomingMessage]>) -> JsValue
Source§impl VectorIntoWasmAbi for IncomingMessage
impl VectorIntoWasmAbi for IncomingMessage
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[IncomingMessage]>) -> Self::Abi
Source§impl WasmDescribe for IncomingMessage
impl WasmDescribe for IncomingMessage
impl SupportsConstructor for IncomingMessage
impl SupportsInstanceProperty for IncomingMessage
impl SupportsStaticProperty for IncomingMessage
Auto Trait Implementations§
impl Freeze for IncomingMessage
impl RefUnwindSafe for IncomingMessage
impl Send for IncomingMessage
impl Sync for IncomingMessage
impl Unpin for IncomingMessage
impl UnwindSafe for IncomingMessage
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
.