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 AioEventsLock

Source§

impl LockAfter<Unlocked> for AioPendingOperationsLock

Source§

impl LockAfter<Unlocked> for AuditDenyCountsLock

Source§

impl LockAfter<Unlocked> for AuditNetlinkClientAuditResponseLock

Source§

impl LockAfter<Unlocked> for AuditQueueLock

Source§

impl LockAfter<Unlocked> for AuditSinkLock

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 BinderThreadStateLock

Source§

impl LockAfter<Unlocked> for BootedLock

Source§

impl LockAfter<Unlocked> for CgroupChildrenLock

Source§

impl LockAfter<Unlocked> for CgroupPidTableLock

Source§

impl LockAfter<Unlocked> for CgroupStateLock

Source§

impl LockAfter<Unlocked> for CgroupV1Level

Source§

impl LockAfter<Unlocked> for ComponentControllerLock

Source§

impl LockAfter<Unlocked> for ComponentMountRecordLock

Source§

impl LockAfter<Unlocked> for DevKmsgLock

Source§

impl LockAfter<Unlocked> for DeviceRegistryState

Source§

impl LockAfter<Unlocked> for DeviceTerminalsLock

Source§

impl LockAfter<Unlocked> for DirEntryChildrenLevel

Source§

impl LockAfter<Unlocked> for DirEntryChildrenRecursiveLevel

Source§

impl LockAfter<Unlocked> for DynamicFileStateLock

Source§

impl LockAfter<Unlocked> for DynamicThreadSpawnerLock

Source§

impl LockAfter<Unlocked> for EbpfMapStateLevel

Source§

impl LockAfter<Unlocked> for EbpfStateLock

Source§

impl LockAfter<Unlocked> for EbpfSuspendLock

Source§

impl LockAfter<Unlocked> for EpollStateLock

Source§

impl LockAfter<Unlocked> for EpollWaitableStateLock

Source§

impl LockAfter<Unlocked> for EventFdInnerLock

Source§

impl LockAfter<Unlocked> for EventHandlerReadyQueueLock

Source§

impl LockAfter<Unlocked> for ExecutorVmarManagerLock

Source§

impl LockAfter<Unlocked> for FastrpcInnerState

Source§

impl LockAfter<Unlocked> for FdTableWriterQueueLock

Source§

impl LockAfter<Unlocked> for FileAsyncOwnerLock

Source§

impl LockAfter<Unlocked> for FileEpollFilesLock

Source§

impl LockAfter<Unlocked> for FileLeaseLock

Source§

impl LockAfter<Unlocked> for FileObjectOffset

Source§

impl LockAfter<Unlocked> for FileOpsCore

Source§

impl LockAfter<Unlocked> for FileServerStatsLock

Source§

impl LockAfter<Unlocked> for FileSystemEntriesLock

Source§

impl LockAfter<Unlocked> for FileSystemPermanentLock

Source§

impl LockAfter<Unlocked> for FsContextStateLock

Source§

impl LockAfter<Unlocked> for FsNodeAppend

Source§

impl LockAfter<Unlocked> for FsNodeFlockInfoLock

Source§

impl LockAfter<Unlocked> for FsNodeFsVerityLock

Source§

impl LockAfter<Unlocked> for FsNodeInfoLevel

Source§

impl LockAfter<Unlocked> for FsNodeInfoRecursiveLevel

Source§

impl LockAfter<Unlocked> for FsNodeWriteGuardStateLock

Source§

impl LockAfter<Unlocked> for FsRegistryLock

Source§

impl LockAfter<Unlocked> for FsRename

Source§

impl LockAfter<Unlocked> for FsRenameRecursive

Source§

impl LockAfter<Unlocked> for FuchsiaRemoteTargetLock

Source§

impl LockAfter<Unlocked> for FuseDirEntryChildrenLevel

Source§

impl LockAfter<Unlocked> for FuseFsNodeInfoLevel

Source§

impl LockAfter<Unlocked> for FuseFsRenameLevel

Source§

impl LockAfter<Unlocked> for FutexTableStateLock

Source§

impl LockAfter<Unlocked> for GenericNetlinkServerStateLock

Source§

impl LockAfter<Unlocked> for HrTimerIsIntervalLock

Source§

impl LockAfter<Unlocked> for HrTimerManagerStateLock

Source§

impl LockAfter<Unlocked> for IcmpPingGidsLock

Source§

impl LockAfter<Unlocked> for InflightVmsplicedPayloadsLock

Source§

impl LockAfter<Unlocked> for InotifyStateLock

Source§

impl LockAfter<Unlocked> for InotifyWatchersLock

Source§

impl LockAfter<Unlocked> for IntervalTimerState

Source§

impl LockAfter<Unlocked> for IoUringStateLock

Source§

impl LockAfter<Unlocked> for KernelIpTables

Source§

impl LockAfter<Unlocked> for KernelSwapFiles

Source§

impl LockAfter<Unlocked> for MapInfoCacheBufLock

Source§

impl LockAfter<Unlocked> for MemoryAttributionPublisherLock

Source§

impl LockAfter<Unlocked> for MemoryDirectoryReaddirPositionLock

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 MountsLevel

Source§

impl LockAfter<Unlocked> for NamespaceFlagsLock

Source§

impl LockAfter<Unlocked> for NetlinkSocketInnerLock

Source§

impl LockAfter<Unlocked> for NetstackDevicesLock

Source§

impl LockAfter<Unlocked> for PagerFilesByInodeLock

Source§

impl LockAfter<Unlocked> for PagerFilesystemsLock

Source§

impl LockAfter<Unlocked> for PerfEventLevel

Source§

impl LockAfter<Unlocked> for PerfFormatIdLookupTableLock

Source§

impl LockAfter<Unlocked> for PerfRingBufferStateLock

Source§

impl LockAfter<Unlocked> for PidToKoidMapInnerLock

Source§

impl LockAfter<Unlocked> for PidToKoidMapLock

Source§

impl LockAfter<Unlocked> for PortWaiterCallbacksLock

Source§

impl LockAfter<Unlocked> for PortWaiterWaitQueuesLock

Source§

impl LockAfter<Unlocked> for PowerMessageCountersLock

Source§

impl LockAfter<Unlocked> for ProcessGroupState

Source§

impl LockAfter<Unlocked> for ProfileHandleCacheLock

Source§

impl LockAfter<Unlocked> for PtsIdsSetLock

Source§

impl LockAfter<Unlocked> for QipcrtrSocketInnerLock

Source§

impl LockAfter<Unlocked> for RecordLocksStateLock

Source§

impl LockAfter<Unlocked> for RemoteBinderControllerLock

Source§

impl LockAfter<Unlocked> for RemoteBinderHandleLevel

Source§

impl LockAfter<Unlocked> for RemoteBlockDeviceRegistryDevicesLock

Source§

impl LockAfter<Unlocked> for RemoteBundleInnerLock

Source§

impl LockAfter<Unlocked> for RemoteUnixDomainSocketStateLock

Source§

impl LockAfter<Unlocked> for ResourceAccessorLevel

Source§

impl LockAfter<Unlocked> for RwQueueInnerLock

Source§

impl LockAfter<Unlocked> for SeLinuxPeerSidLock

Source§

impl LockAfter<Unlocked> for SeLinuxPendingEntriesLock

Source§

impl LockAfter<Unlocked> for SeLinuxPendingFileSystemsLock

Source§

impl LockAfter<Unlocked> for SeLinuxUpdateLock

Source§

impl LockAfter<Unlocked> for SeccompNotifierLock

Source§

impl LockAfter<Unlocked> for SessionMutableStateLock

Source§

impl LockAfter<Unlocked> for SignalActionsLock

Source§

impl LockAfter<Unlocked> for SignalFdMaskLock

Source§

impl LockAfter<Unlocked> for SimpleDirectoryEntriesLock

Source§

impl LockAfter<Unlocked> for SocketStateLock

Source§

impl LockAfter<Unlocked> for StubBytesFileStateLock

Source§

impl LockAfter<Unlocked> for SuspendResumeManagerInnerLock

Source§

impl LockAfter<Unlocked> for SyscallLogFiltersLock

Source§

impl LockAfter<Unlocked> for SyslogStateLock

Source§

impl LockAfter<Unlocked> for SyslogSubscriptionLock

Source§

impl LockAfter<Unlocked> for TaskCommandLevel

Source§

impl LockAfter<Unlocked> for TaskCredsLock

Source§

impl LockAfter<Unlocked> for TaskMutableStateLock

Source§

impl LockAfter<Unlocked> for TaskRelease

Source§

impl LockAfter<Unlocked> for TerminalMutableStateLock

Source§

impl LockAfter<Unlocked> for ThreadGroupLimits

Source§

impl LockAfter<Unlocked> for ThreadGroupMutableStateLock

Source§

impl LockAfter<Unlocked> for ThreadGroupPendingSignalsLock

Source§

impl LockAfter<Unlocked> for ThreadGroupPtraceesLock

Source§

impl LockAfter<Unlocked> for ThreadLockupDetectorRegistryLock

Source§

impl LockAfter<Unlocked> for TimerFileInfoLock

Source§

impl LockAfter<Unlocked> for TouchPowerPolicyEnabledLock

Source§

impl LockAfter<Unlocked> for UninterruptibleLock

Source§

impl LockAfter<Unlocked> for UnixSocketInnerLock

Source§

impl LockAfter<Unlocked> for UserFaultInner

Source§

impl LockAfter<Unlocked> for UtsNamespaceLock

Source§

impl LockAfter<Unlocked> for VmspliceSegmentsLock

Source§

impl LockAfter<Unlocked> for VsockSocketInnerLock

Source§

impl LockAfter<Unlocked> for WaitQueueImplLock

Source§

impl LockAfter<Unlocked> for WaiterEventHandlerLock

Source§

impl LockAfter<Unlocked> for WakeSourcesLock

Source§

impl LockAfter<Unlocked> for WakeWatchersLock

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>,