Struct ferrite_session::prelude::SendValue
source · [−]pub struct SendValue<T, A>(_);
Trait Implementations
sourceimpl<T, A> Protocol for SendValue<T, A> where
T: Send + 'static,
A: Protocol,
impl<T, A> Protocol for SendValue<T, A> where
T: Send + 'static,
A: Protocol,
type ClientEndpoint = ReceiverOnce<(Value<T>, A::ClientEndpoint)>
type ProviderEndpoint = SenderOnce<(Value<T>, A::ClientEndpoint)>
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, A> SealedProtocol for SendValue<T, A>
Auto Trait Implementations
impl<T, A> RefUnwindSafe for SendValue<T, A> where
A: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, A> Send for SendValue<T, A> where
A: Send,
T: Send,
impl<T, A> Sync for SendValue<T, A> where
A: Sync,
T: Sync,
impl<T, A> Unpin for SendValue<T, A> where
A: Unpin,
T: Unpin,
impl<T, A> UnwindSafe for SendValue<T, A> where
A: UnwindSafe,
T: 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