Struct exocore_discovery::payload::Payload
source · pub struct Payload {
pub pin: Pin,
pub reply_pin: Option<Pin>,
pub reply_token: Option<ReplyToken>,
/* private fields */
}
Fields§
§pin: Pin
Pin of the payload
reply_pin: Option<Pin>
If payload expects a reply, pin to be used to reply to this payload.
reply_token: Option<ReplyToken>
If payload expects a reply, reply token that will be
required in the ReplyPayloadRequest
to authenticate.
Implementations§
source§impl Payload
impl Payload
pub fn decode_payload(&self) -> Result<Vec<u8>, PayloadError>
Trait Implementations§
source§impl<'de> Deserialize<'de> for Payload
impl<'de> Deserialize<'de> for Payload
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
Auto Trait Implementations§
impl RefUnwindSafe for Payload
impl Send for Payload
impl Sync for Payload
impl Unpin for Payload
impl UnwindSafe for Payload
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