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,
P: 'static,
impl<T, P> EncodableOption for ClientEnd<T, P>where
T: EncodableOption,
P: 'static,
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>,
P: 'static,
impl<E, T, P> EncodeOption<E> for ClientEnd<T, P>where
E: ?Sized,
T: EncodeOption<E>,
P: 'static,
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>,
P: 'static,
impl<E, T, P> EncodeRef<E> for ClientEnd<T, P>where
E: ?Sized,
T: EncodeRef<E>,
P: 'static,
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, P, U> FromWireOption<ClientEnd<U, P>> for ClientEnd<T, P>where
T: FromWireOption<U>,
U: Wire,
P: 'static,
impl<T, P, U> FromWireOption<ClientEnd<U, P>> for ClientEnd<T, P>where
T: FromWireOption<U>,
U: Wire,
P: 'static,
Source§fn from_wire_option(wire: ClientEnd<U, P>) -> Option<Self>
fn from_wire_option(wire: ClientEnd<U, P>) -> Option<Self>
Converts the given
wire
to an option of this type.Source§impl<T, P, U> FromWireOptionRef<ClientEnd<U, P>> for ClientEnd<T, P>where
T: FromWireOptionRef<U>,
U: Wire,
P: 'static,
impl<T, P, U> FromWireOptionRef<ClientEnd<U, P>> for ClientEnd<T, P>where
T: FromWireOptionRef<U>,
U: Wire,
P: 'static,
Source§fn from_wire_option_ref(wire: &ClientEnd<U, P>) -> Option<Self>
fn from_wire_option_ref(wire: &ClientEnd<U, P>) -> Option<Self>
Converts the given
wire
reference to an option of this type.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
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T, W> FromWireOption<WireBox<'_, W>> for Twhere
T: FromWire<W>,
impl<T, W> FromWireOption<WireBox<'_, W>> for Twhere
T: FromWire<W>,
§fn from_wire_option(wire: WireBox<'_, W>) -> Option<T>
fn from_wire_option(wire: WireBox<'_, W>) -> Option<T>
Converts the given
wire
to an option of this type.§impl<T, W> FromWireOptionRef<WireBox<'_, W>> for Twhere
T: FromWireRef<W>,
impl<T, W> FromWireOptionRef<WireBox<'_, W>> for Twhere
T: FromWireRef<W>,
§fn from_wire_option_ref(wire: &WireBox<'_, W>) -> Option<T>
fn from_wire_option_ref(wire: &WireBox<'_, W>) -> Option<T>
Converts the given
wire
reference to an option of this type.