tokio/runtime/scheduler/
lock.rs

1/// A lock (mutex) yielding generic data.
2pub(crate) trait Lock<T> {
3    type Handle: AsMut<T>;
4
5    fn lock(self) -> Self::Handle;
6}