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 = ClientEnd<<T as EncodableOption>::EncodedOption, P>
type EncodedOption = ClientEnd<<T as EncodableOption>::EncodedOption, P>
The wire type for the optional value.
Source§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 moreAuto 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