pub struct ClientEnd<T, P> { /* private fields */ }
Expand description
The client end of a protocol.
Implementations§
Source§impl<T, P> ClientEnd<T, P>
impl<T, P> ClientEnd<T, P>
Sourcepub fn from_untyped(transport: T) -> Self
pub fn from_untyped(transport: T) -> Self
Returns a new endpoint over the given transport.
Sourcepub fn into_untyped(self) -> T
pub fn into_untyped(self) -> T
Returns the underlying transport.
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<'buf> = ClientEnd<<T as EncodableOption>::EncodedOption<'buf>, P>
type EncodedOption<'buf> = ClientEnd<<T as EncodableOption>::EncodedOption<'buf>, 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<&mut Self>,
encoder: &mut E,
slot: Slot<'_, Self::EncodedOption<'_>>,
) -> Result<(), EncodeError>
fn encode_option( this: Option<&mut Self>, encoder: &mut E, slot: Slot<'_, Self::EncodedOption<'_>>, ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and slot.
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