pub struct ClientEnd<T, P> { /* private fields */ }
Expand description
The client end of a protocol.
Implementations§
Trait Implementations§
Source§impl<T, P> EncodableOption for ClientEnd<T, P>where
T: EncodableOption,
impl<T, P> EncodableOption for ClientEnd<T, P>where
T: EncodableOption,
Source§type EncodedOption = ClientEnd<<T as EncodableOption>::EncodedOption, P>
type EncodedOption = ClientEnd<<T as EncodableOption>::EncodedOption, P>
The wire type for the optional value.
Source§impl<E, T, P> EncodeOption<E> for ClientEnd<T, P>where
E: ?Sized,
T: EncodeOption<E>,
impl<E, T, P> EncodeOption<E> for ClientEnd<T, P>where
E: ?Sized,
T: EncodeOption<E>,
Source§fn encode_option(
this: Option<Self>,
encoder: &mut E,
out: &mut MaybeUninit<Self::EncodedOption>,
) -> Result<(), EncodeError>
fn encode_option( this: Option<Self>, encoder: &mut E, out: &mut MaybeUninit<Self::EncodedOption>, ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Source§impl<E, T, P> EncodeRef<E> for ClientEnd<T, P>where
E: ?Sized,
T: EncodeRef<E>,
impl<E, T, P> EncodeRef<E> for ClientEnd<T, P>where
E: ?Sized,
T: EncodeRef<E>,
Source§fn encode_ref(
&self,
encoder: &mut E,
out: &mut MaybeUninit<Self::Encoded>,
) -> Result<(), EncodeError>
fn encode_ref( &self, encoder: &mut E, out: &mut MaybeUninit<Self::Encoded>, ) -> Result<(), EncodeError>
Encodes this reference into an encoder and output.
Source§impl<T, P1, P2> TakeFrom<ClientEnd<T, P1>> for ClientEnd<P2>where
Channel: TakeFrom<T>,
P2: TakeFrom<P1>,
impl<T, P1, P2> TakeFrom<ClientEnd<T, P1>> for ClientEnd<P2>where
Channel: TakeFrom<T>,
P2: TakeFrom<P1>,
Source§fn take_from(from: &ClientEnd<T, P1>) -> Self
fn take_from(from: &ClientEnd<T, P1>) -> Self
Converts from the given
T
, taking any resources that can’t be cloned.§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§impl<T, P1, P2> TakeFrom<ClientEnd<T, P1>> for Option<ClientEnd<P2>>
impl<T, P1, P2> TakeFrom<ClientEnd<T, P1>> for Option<ClientEnd<P2>>
Source§fn take_from(from: &ClientEnd<T, P1>) -> Self
fn take_from(from: &ClientEnd<T, P1>) -> Self
Converts from the given
T
, taking any resources that can’t be cloned.§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§impl<T, P, U> TakeFrom<ClientEnd<U, P>> for ClientEnd<T, P>where
T: TakeFrom<U>,
impl<T, P, U> TakeFrom<ClientEnd<U, P>> for ClientEnd<T, P>where
T: TakeFrom<U>,
Source§fn take_from(from: &ClientEnd<U, P>) -> Self
fn take_from(from: &ClientEnd<U, P>) -> Self
Converts from the given
T
, taking any resources that can’t be cloned.§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§impl<T, P, U> TakeFrom<ClientEnd<U, P>> for Option<ClientEnd<T, P>>where
Option<T>: TakeFrom<U>,
impl<T, P, U> TakeFrom<ClientEnd<U, P>> for Option<ClientEnd<T, P>>where
Option<T>: TakeFrom<U>,
Source§fn take_from(from: &ClientEnd<U, P>) -> Self
fn take_from(from: &ClientEnd<U, P>) -> Self
Converts from the given
T
, taking any resources that can’t be cloned.§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§impl<T: ZeroPadding, P> ZeroPadding for ClientEnd<T, P>
impl<T: ZeroPadding, P> ZeroPadding for ClientEnd<T, P>
Source§fn zero_padding(out: &mut MaybeUninit<Self>)
fn zero_padding(out: &mut MaybeUninit<Self>)
Writes zeroes to the padding for this type, if any.
Auto Trait Implementations§
impl<T, P> Freeze for ClientEnd<T, P>where
T: Freeze,
impl<T, P> RefUnwindSafe for ClientEnd<T, P>where
T: RefUnwindSafe,
P: RefUnwindSafe,
impl<T, P> Send for ClientEnd<T, P>
impl<T, P> Sync for ClientEnd<T, P>
impl<T, P> Unpin for ClientEnd<T, P>
impl<T, P> UnwindSafe for ClientEnd<T, P>where
T: UnwindSafe,
P: 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