Searched defs:GuardState (Results 1 – 1 of 1) sorted by relevance
45 type GuardState; typedef 65 unsafe fn lock(ptr: *mut Self::State) -> Self::GuardState; in lock() argument 72 unsafe fn try_lock(ptr: *mut Self::State) -> Option<Self::GuardState>; in try_lock() argument 79 unsafe fn unlock(ptr: *mut Self::State, guard_state: &Self::GuardState); in unlock() argument 87 unsafe fn relock(ptr: *mut Self::State, guard_state: &mut Self::GuardState) { in relock() argument