pub struct Wrap<T> where
T: Wrapper, { /* private fields */ }
Trait Implementations
sourceimpl<T> Protocol for Wrap<T> where
T: Wrapper,
T: Send + 'static,
impl<T> Protocol for Wrap<T> where
T: Wrapper,
T: Send + 'static,
type ClientEndpoint = ReceiverOnce<Wrap<T>>
type ProviderEndpoint = SenderOnce<Wrap<T>>
fn create_endpoints() -> (Self::ProviderEndpoint, Self::ClientEndpoint)
fn forward(
client_end: Self::ClientEndpoint,
provider_end: Self::ProviderEndpoint
) -> Pin<Box<dyn Future<Output = ()> + Send + 'static>>
impl<T> SealedProtocol for Wrap<T> where
T: Wrapper,
Auto Trait Implementations
impl<T> !RefUnwindSafe for Wrap<T>
impl<T> Send for Wrap<T>
impl<T> !Sync for Wrap<T>
impl<T> Unpin for Wrap<T>
impl<T> !UnwindSafe for Wrap<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more