Struct ClientEnd
pub struct ClientEnd<T, P> { /* private fields */ }
Expand description
The client end of a protocol.
Implementations§
§impl<T, P> ClientEnd<T, P>
impl<T, P> ClientEnd<T, P>
pub fn from_untyped(transport: T) -> ClientEnd<T, P>
pub fn from_untyped(transport: T) -> ClientEnd<T, P>
Returns a new endpoint over the given transport.
pub fn into_untyped(self) -> T
pub fn into_untyped(self) -> T
Returns the underlying transport.
Trait Implementations§
§impl<T, P> Encodable for ClientEnd<T, P>where
T: Encodable,
P: 'static,
impl<T, P> Encodable for ClientEnd<T, P>where
T: Encodable,
P: 'static,
§const COPY_OPTIMIZATION: CopyOptimization<Self, Self::Encoded> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, Self::Encoded> = _
Whether the conversion from
Self
to Self::Encoded
is equivalent to copying the raw bytes
of Self
. Read more§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,
§type EncodedOption = ClientEnd<<T as EncodableOption>::EncodedOption, P>
type EncodedOption = ClientEnd<<T as EncodableOption>::EncodedOption, P>
The wire type for the optional value.
§impl<E, T, P> Encode<E> for ClientEnd<T, P>
impl<E, T, P> Encode<E> for ClientEnd<T, P>
§fn encode(
self,
encoder: &mut E,
out: &mut MaybeUninit<<ClientEnd<T, P> as Encodable>::Encoded>,
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut E, out: &mut MaybeUninit<<ClientEnd<T, P> as Encodable>::Encoded>, ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§impl<E, T, P> EncodeOption<E> for ClientEnd<T, P>where
T: EncodeOption<E>,
P: 'static,
E: ?Sized,
impl<E, T, P> EncodeOption<E> for ClientEnd<T, P>where
T: EncodeOption<E>,
P: 'static,
E: ?Sized,
§fn encode_option(
this: Option<ClientEnd<T, P>>,
encoder: &mut E,
out: &mut MaybeUninit<<ClientEnd<T, P> as EncodableOption>::EncodedOption>,
) -> Result<(), EncodeError>
fn encode_option( this: Option<ClientEnd<T, P>>, encoder: &mut E, out: &mut MaybeUninit<<ClientEnd<T, P> as EncodableOption>::EncodedOption>, ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
§impl<E, T, P> EncodeRef<E> for ClientEnd<T, P>
impl<E, T, P> EncodeRef<E> for ClientEnd<T, P>
§fn encode_ref(
&self,
encoder: &mut E,
out: &mut MaybeUninit<<ClientEnd<T, P> as Encodable>::Encoded>,
) -> Result<(), EncodeError>
fn encode_ref( &self, encoder: &mut E, out: &mut MaybeUninit<<ClientEnd<T, P> as Encodable>::Encoded>, ) -> Result<(), EncodeError>
Encodes this reference into an encoder and output.
§impl<T, P, U> FromWire<ClientEnd<U, P>> for ClientEnd<T, P>where
T: FromWire<U>,
impl<T, P, U> FromWire<ClientEnd<U, P>> for ClientEnd<T, P>where
T: FromWire<U>,
§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
§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,
§fn from_wire_option(wire: ClientEnd<U, P>) -> Option<ClientEnd<T, P>>
fn from_wire_option(wire: ClientEnd<U, P>) -> Option<ClientEnd<T, P>>
Converts the given
wire
to an option of this type.§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,
§fn from_wire_option_ref(wire: &ClientEnd<U, P>) -> Option<ClientEnd<T, P>>
fn from_wire_option_ref(wire: &ClientEnd<U, P>) -> Option<ClientEnd<T, P>>
Converts the given
wire
reference to an option of this type.§impl<T, P, U> FromWireRef<ClientEnd<U, P>> for ClientEnd<T, P>where
T: FromWireRef<U>,
impl<T, P, U> FromWireRef<ClientEnd<U, P>> for ClientEnd<T, P>where
T: FromWireRef<U>,
§fn from_wire_ref(wire: &ClientEnd<U, P>) -> ClientEnd<T, P>
fn from_wire_ref(wire: &ClientEnd<U, P>) -> ClientEnd<T, P>
Converts the given
wire
reference to 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.