pub struct ContextPayload(/* private fields */);Implementations§
Source§impl ContextPayload
impl ContextPayload
pub fn new<P>(payload: P) -> Selfwhere
P: ContextPayloadExt,
pub fn payload<P>(&self) -> Option<&P>where
P: ContextPayloadExt + 'static,
Trait Implementations§
Source§impl Clone for ContextPayload
impl Clone for ContextPayload
Source§impl Debug for ContextPayload
impl Debug for ContextPayload
Source§impl<'de> Deserialize<'de> for ContextPayload
impl<'de> Deserialize<'de> for ContextPayload
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 Freeze for ContextPayload
impl !RefUnwindSafe for ContextPayload
impl Send for ContextPayload
impl Sync for ContextPayload
impl Unpin for ContextPayload
impl !UnwindSafe for ContextPayload
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