pub struct TaskPersistentInfoState {
pub tid: Pid,
pub pid: Pid,
/* private fields */
}Expand description
The information of the task that needs to be available to the ThreadGroup while computing
which process a wait can target. It is necessary to shared this data with the ThreadGroup so
that it is available while the task is being dropped and so is not accessible from a weak
pointer.
Fields§
§tid: PidImmutable information about the task
pid: PidImplementations§
Source§impl TaskPersistentInfoState
impl TaskPersistentInfoState
pub fn command_guard(&self) -> LockDepGuard<'_, TaskCommand>
Sourcepub fn real_creds(&self) -> RcuReadGuard<Credentials>
pub fn real_creds(&self) -> RcuReadGuard<Credentials>
Snapshots the credentials, returning a short-lived RCU-guarded reference.
Sourcepub fn clone_creds(&self) -> Arc<Credentials> ⓘ
pub fn clone_creds(&self) -> Arc<Credentials> ⓘ
Snapshots the credentials, returning a new reference. Use this if you need to stash the credentials somewhere.
Sourcepub fn lock_creds(&self) -> CredentialsReadGuard<'_>
pub fn lock_creds(&self) -> CredentialsReadGuard<'_>
Returns a read lock on the credentials. This is appropriate if you need to guarantee that the Task’s credentials will not change during a security-sensitive operation.
Trait Implementations§
Source§impl Debug for TaskPersistentInfoState
impl Debug for TaskPersistentInfoState
impl Eq for TaskPersistentInfoState
Source§impl Hash for TaskPersistentInfoState
impl Hash for TaskPersistentInfoState
Source§impl Ord for TaskPersistentInfoState
impl Ord for TaskPersistentInfoState
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for TaskPersistentInfoState
impl PartialEq for TaskPersistentInfoState
Source§impl PartialOrd for TaskPersistentInfoState
impl PartialOrd for TaskPersistentInfoState
impl RcuDroppable for TaskPersistentInfoState
Auto Trait Implementations§
impl !Freeze for TaskPersistentInfoState
impl !RefUnwindSafe for TaskPersistentInfoState
impl Send for TaskPersistentInfoState
impl Sync for TaskPersistentInfoState
impl Unpin for TaskPersistentInfoState
impl UnsafeUnpin for TaskPersistentInfoState
impl UnwindSafe for TaskPersistentInfoState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
fn fidl_into_native(self) -> Box<N>
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more