pub struct Lock<F> where
F: SharedRecApp<SharedToLinear<LinearToShared<F>>>, { /* private fields */ }
Trait Implementations
sourceimpl<F> Protocol for Lock<F> where
F: Protocol,
F: SharedRecApp<SharedToLinear<LinearToShared<F>>>,
F::Applied: Protocol,
impl<F> Protocol for Lock<F> where
F: Protocol,
F: SharedRecApp<SharedToLinear<LinearToShared<F>>>,
F::Applied: Protocol,
type ClientEndpoint = ReceiverOnce<Lock<F>>
type ProviderEndpoint = SenderOnce<Lock<F>>
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<F> SealedProtocol for Lock<F> where
F: SharedRecApp<SharedToLinear<LinearToShared<F>>>,
Auto Trait Implementations
impl<F> !RefUnwindSafe for Lock<F>
impl<F> Send for Lock<F>
impl<F> Sync for Lock<F>
impl<F> Unpin for Lock<F>
impl<F> !UnwindSafe for Lock<F>
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