Struct wick_packet::ContextTransport
source · #[non_exhaustive]pub struct ContextTransport<T>where
T: Debug + Serialize,{
pub config: T,
pub inherent: InherentData,
pub invocation: Option<InvocationRequest>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.config: T
§inherent: InherentData
§invocation: Option<InvocationRequest>
Implementations§
source§impl<T> ContextTransport<T>where
T: Debug + Serialize,
impl<T> ContextTransport<T>where T: Debug + Serialize,
pub const fn new(config: T, inherent: InherentData) -> Self
Trait Implementations§
source§impl<'de, T> Deserialize<'de> for ContextTransport<T>where
T: Debug + Serialize + Deserialize<'de>,
impl<'de, T> Deserialize<'de> for ContextTransport<T>where T: Debug + Serialize + Deserialize<'de>,
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<T> RefUnwindSafe for ContextTransport<T>where T: RefUnwindSafe,
impl<T> Send for ContextTransport<T>where T: Send,
impl<T> Sync for ContextTransport<T>where T: Sync,
impl<T> Unpin for ContextTransport<T>where T: Unpin,
impl<T> UnwindSafe for ContextTransport<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