#[repr(u8)]pub enum Ring {
Ring0 = 0,
Ring1 = 1,
Ring2 = 2,
Ring3 = 3,
}
Expand description
x86 Protection levels
§Note
This should not contain values larger than 2 bits, otherwise segment descriptor code needs to be adjusted accordingly.
Variants§
Trait Implementations§
impl Copy for Ring
impl Eq for Ring
impl StructuralPartialEq for Ring
Auto Trait Implementations§
impl Freeze for Ring
impl RefUnwindSafe for Ring
impl Send for Ring
impl Sync for Ring
impl Unpin for Ring
impl UnwindSafe for Ring
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