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