pub struct Wrap<T> where
T: Wrapper, {
pub(crate) unwrap: Box<dyn HasWrapped<T> + 'static, Global>,
}
Fields
unwrap: Box<dyn HasWrapped<T> + 'static, Global>
Trait Implementations
sourceimpl<T> Protocol for Wrap<T> where
T: Wrapper + 'static + Send,
impl<T> Protocol for Wrap<T> where
T: Wrapper + 'static + Send,
type ClientEndpoint = ReceiverOnce<Wrap<T>>
type ProviderEndpoint = SenderOnce<Wrap<T>>
fn create_endpoints(
) -> (<Wrap<T> as Protocol>::ProviderEndpoint, <Wrap<T> as Protocol>::ClientEndpoint)
fn forward(
client_end: <Wrap<T> as Protocol>::ClientEndpoint,
provider_end: <Wrap<T> as Protocol>::ProviderEndpoint
) -> Pin<Box<dyn Future<Output = ()> + Send + 'static, Global>>
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