Skip to main content

Unlocked

Enum Unlocked 

Source
pub enum Unlocked {}
Expand description

“Highest” lock level

The lock level for the thing returned by Locked::new. Users of this crate should implement LockAfter<Unlocked> for the root of any lock ordering trees.

Implementations§

Source§

impl Unlocked

Source

pub unsafe fn new() -> &'static mut Locked<Unlocked>

Entry point for locked access.

Unlocked is the “root” lock level and can be acquired before any lock.

§Safety

Unlocked should only be used before any lock in the program has been acquired.

Source

pub unsafe fn new_instance() -> Locked<Unlocked>

Entry point for locked access.

Unlocked is the “root” lock level and can be acquired before any lock.

§Safety

Unlocked should only be used before any lock in the program has been acquired.

Trait Implementations§

Source§

impl LockAfter<Unlocked> for BeforeFsNodeAppend

Source§

impl LockAfter<Unlocked> for BinderContextManagerLevel

Source§

impl LockAfter<Unlocked> for BinderFreezeLevel

Source§

impl LockAfter<Unlocked> for BinderFsDevicesLevel

Source§

impl LockAfter<Unlocked> for BinderObjectLevel

Source§

impl LockAfter<Unlocked> for BinderProcessSharedMemoryLevel

Source§

impl LockAfter<Unlocked> for BinderProcessStateLevel

Source§

impl LockAfter<Unlocked> for BinderProcsLevel

Source§

impl LockAfter<Unlocked> for DeviceRegistryState

Source§

impl LockAfter<Unlocked> for DirEntryChildrenLevel

Source§

impl LockAfter<Unlocked> for DirEntryChildrenRecursiveLevel

Source§

impl LockAfter<Unlocked> for EbpfMapStateLevel

Source§

impl LockAfter<Unlocked> for EbpfStateLock

Source§

impl LockAfter<Unlocked> for EbpfSuspendLock

Source§

impl LockAfter<Unlocked> for FastrpcInnerState

Source§

impl LockAfter<Unlocked> for FileObjectOffset

Source§

impl LockAfter<Unlocked> for FileOpsCore

Source§

impl LockAfter<Unlocked> for FsNodeAppend

Source§

impl LockAfter<Unlocked> for FsRename

Source§

impl LockAfter<Unlocked> for FsRenameRecursive

Source§

impl LockAfter<Unlocked> for FuseDirEntryChildrenLevel

Source§

impl LockAfter<Unlocked> for FuseFsRenameLevel

Source§

impl LockAfter<Unlocked> for KernelIpTables

Source§

impl LockAfter<Unlocked> for KernelSwapFiles

Source§

impl LockAfter<Unlocked> for MemoryPressureMonitor

Source§

impl LockAfter<Unlocked> for MemoryPressureMonitorClientState

Source§

impl LockAfter<Unlocked> for MemoryXattrStorageLevel

Source§

impl LockAfter<Unlocked> for MmDumpable

Source§

impl LockAfter<Unlocked> for ProcessGroupState

Source§

impl LockAfter<Unlocked> for RemoteBinderHandleLevel

Source§

impl LockAfter<Unlocked> for ResourceAccessorLevel

Source§

impl LockAfter<Unlocked> for TaskRelease

Source§

impl LockAfter<Unlocked> for TerminalLock

Source§

impl LockAfter<Unlocked> for ThreadGroupLimits

Source§

impl LockAfter<Unlocked> for UninterruptibleLock

Source§

impl LockAfter<Unlocked> for UserFaultInner

Source§

impl LockEqualOrBefore<Unlocked> for Unlocked

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<B, A> LockBefore<B> for A
where B: LockAfter<A>,

Source§

impl<B, A> LockEqualOrBefore<B> for A
where A: LockBefore<B>,