Struct ferrite_session::prelude::S
source · [−]pub struct S<N>(pub PhantomData<N>);
Tuple Fields
0: PhantomData<N>
Trait Implementations
sourceimpl<B, A1, A2, C, N> ContextLens<(B, C), A1, A2> for S<N> where
B: Slot,
A1: Slot,
A2: Slot,
C: Context,
N: ContextLens<C, A1, A2>,
impl<B, A1, A2, C, N> ContextLens<(B, C), A1, A2> for S<N> where
B: Slot,
A1: Slot,
A2: Slot,
C: Context,
N: ContextLens<C, A1, A2>,
type Deleted = (B, N::Deleted)
type Target = (B, N::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)
sourceimpl<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: Copy> Copy for S<N>
impl<N> SealedNat for S<N> where
N: Nat,
impl<N> SealedProtocol for S<N>
Auto Trait Implementations
impl<N> RefUnwindSafe for S<N> where
N: RefUnwindSafe,
impl<N> Send for S<N> where
N: Send,
impl<N> Sync for S<N> where
N: Sync,
impl<N> Unpin for S<N> where
N: Unpin,
impl<N> UnwindSafe for S<N> where
N: UnwindSafe,
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more