Trait tokio::runtime::scheduler::lock::Lock

source ·
pub(crate) trait Lock<T> {
    type Handle: AsMut<T>;

    // Required method
    fn lock(self) -> Self::Handle;
}
Expand description

A lock (mutex) yielding generic data.

Required Associated Types§

Required Methods§

source

fn lock(self) -> Self::Handle

Implementors§

source§

impl<'a> Lock<Synced> for &'a Handle

source§

impl<'a> Lock<Synced> for &'a mut Synced

§

type Handle = &'a mut Synced