summaryrefslogtreecommitdiffstats
path: root/third_party/rust/tokio/src/runtime/scheduler/lock.rs
blob: 0901c2b37ca609bce4cadab21104b2268078b1ab (plain)
1
2
3
4
5
6
/// A lock (mutex) yielding generic data.
pub(crate) trait Lock<T> {
    type Handle: AsMut<T>;

    fn lock(self) -> Self::Handle;
}