pub struct IrqDisabledToken(/* private fields */);Expand description
Preuve typée que les IRQ sont masquées sur le CPU courant.
L’allocateur mémoire consomme ce token pour empêcher à la compilation les appels depuis des contextes où une interruption pourrait ré-entrer sur le même verrou et provoquer un deadlock.
Intentionnellement non-Copy et non-Clone : le token ne doit pas pouvoir
s’échapper du contexte IRQ-off dans lequel il a été créé.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IrqDisabledToken
impl RefUnwindSafe for IrqDisabledToken
impl Send for IrqDisabledToken
impl Sync for IrqDisabledToken
impl Unpin for IrqDisabledToken
impl UnsafeUnpin for IrqDisabledToken
impl UnwindSafe for IrqDisabledToken
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
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