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