#[repr(C)]pub struct ProtocolPayload {
pub channel: Handle,
}
Expand description
Contains a protocol open request.
Fields§
§channel: Handle
Trait Implementations§
Source§impl Debug for ProtocolPayload
impl Debug for ProtocolPayload
Source§impl Encodable for ProtocolPayload
impl Encodable for ProtocolPayload
Source§const COPY_OPTIMIZATION: CopyOptimization<Self>
const COPY_OPTIMIZATION: CopyOptimization<Self>
An optimization flag that allows the bytes of this type to be copied directly during
encoding instead of calling
encode
. Read moreSource§type Encoded = WireProtocolPayload
type Encoded = WireProtocolPayload
The wire type for the value.
Source§impl EncodableOption for Box<ProtocolPayload>
impl EncodableOption for Box<ProtocolPayload>
Source§type EncodedOption = WireBox<WireProtocolPayload>
type EncodedOption = WireBox<WireProtocolPayload>
The wire type for the optional value.
Source§impl<___E> Encode<___E> for ProtocolPayloadwhere
___E: InternalHandleEncoder + ?Sized + HandleEncoder,
impl<___E> Encode<___E> for ProtocolPayloadwhere
___E: InternalHandleEncoder + ?Sized + HandleEncoder,
Source§impl<___E> EncodeOption<___E> for Box<ProtocolPayload>where
___E: Encoder + ?Sized,
ProtocolPayload: Encode<___E>,
impl<___E> EncodeOption<___E> for Box<ProtocolPayload>where
___E: Encoder + ?Sized,
ProtocolPayload: Encode<___E>,
Source§fn encode_option(
this: Option<&mut Self>,
encoder: &mut ___E,
out: &mut MaybeUninit<Self::EncodedOption>,
) -> Result<(), EncodeError>
fn encode_option( this: Option<&mut Self>, encoder: &mut ___E, out: &mut MaybeUninit<Self::EncodedOption>, ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Source§impl TakeFrom<WireProtocolPayload> for ProtocolPayload
impl TakeFrom<WireProtocolPayload> for ProtocolPayload
Source§const COPY_OPTIMIZATION: CopyOptimization<Self>
const COPY_OPTIMIZATION: CopyOptimization<Self>
An optimization flag that allows the bytes of this type to be copied directly during
conversion instead of calling
take_from
. Read moreSource§fn take_from(from: &WireProtocolPayload) -> Self
fn take_from(from: &WireProtocolPayload) -> Self
Converts from the given
T
, taking any resources that can’t be cloned.Auto Trait Implementations§
impl Freeze for ProtocolPayload
impl RefUnwindSafe for ProtocolPayload
impl Send for ProtocolPayload
impl Sync for ProtocolPayload
impl Unpin for ProtocolPayload
impl UnwindSafe for ProtocolPayload
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