Struct kernel::cred::Credential
source · [−]#[repr(transparent)]pub struct Credential(_);
Expand description
Wraps the kernel’s struct cred
.
Invariants
Instances of this type are always ref-counted, that is, a call to get_cred
ensures that the
allocation remains valid at least until the matching call to put_cred
.
Trait Implementations
sourceimpl AlwaysRefCounted for Credential
impl AlwaysRefCounted for Credential
Auto Trait Implementations
impl !RefUnwindSafe for Credential
impl !Send for Credential
impl !Sync for Credential
impl Unpin for Credential
impl UnwindSafe for Credential
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more