pub struct S<N>(pub PhantomData<N>);Tuple Fields§
§0: PhantomData<N>Trait Implementations§
Source§impl<B, A1, A2, C, N> ContextLens<(B, C), A1, A2> for S<N>
impl<B, A1, A2, C, N> ContextLens<(B, C), A1, A2> for S<N>
type Deleted = (B, <N as ContextLens<C, A1, A2>>::Deleted)
type Target = (B, <N as ContextLens<C, A1, A2>>::Target)
fn extract_source( (p, r1): (B::Endpoint, C::Endpoints), ) -> (A1::Endpoint, (B::Endpoint, <N::Deleted as Context>::Endpoints))
fn insert_target( q: A2::Endpoint, (p, r1): (B::Endpoint, <N::Deleted as Context>::Endpoints), ) -> (B::Endpoint, <N::Target as Context>::Endpoints)
impl<N: Copy> Copy for S<N>
Source§impl<N> Protocol for S<N>where
N: Protocol,
impl<N> Protocol for S<N>where
N: Protocol,
type ClientEndpoint = ()
type ProviderEndpoint = ()
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<N> SealedNat for S<N>where
N: Nat,
impl<N> SealedProtocol for S<N>
Auto Trait Implementations§
impl<N> Freeze for S<N>where
PhantomData<N>: Freeze,
impl<N> RefUnwindSafe for S<N>where
PhantomData<N>: RefUnwindSafe,
impl<N> Send for S<N>where
PhantomData<N>: Send,
impl<N> Sync for S<N>where
PhantomData<N>: Sync,
impl<N> Unpin for S<N>where
PhantomData<N>: Unpin,
impl<N> UnsafeUnpin for S<N>where
PhantomData<N>: UnsafeUnpin,
impl<N> UnwindSafe for S<N>where
PhantomData<N>: 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