pub struct Lock<F>{ /* private fields */ }Trait Implementations§
Source§impl<F> Protocol for Lock<F>
impl<F> Protocol for Lock<F>
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>
Auto Trait Implementations§
impl<F> !RefUnwindSafe for Lock<F>
impl<F> !UnwindSafe for Lock<F>
impl<F> Freeze for Lock<F>
impl<F> Send for Lock<F>
impl<F> Sync for Lock<F>
impl<F> Unpin for Lock<F>
impl<F> UnsafeUnpin for Lock<F>
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