pub struct SegmentSelector(/* private fields */);
Implementations§
Source§impl SegmentSelector
impl SegmentSelector
Sourcepub const fn new(index: u16, rpl: Ring) -> SegmentSelector
pub const fn new(index: u16, rpl: Ring) -> SegmentSelector
Create a new SegmentSelector
§Arguments
index
- index in GDT or LDT array.rpl
- Requested privilege level of the selector
Sourcepub fn from_raw(bits: u16) -> SegmentSelector
pub fn from_raw(bits: u16) -> SegmentSelector
Make a new segment selector from a untyped u16 value.
pub fn bits(&self) -> u16
Trait Implementations§
Source§impl Clone for SegmentSelector
impl Clone for SegmentSelector
Source§fn clone(&self) -> SegmentSelector
fn clone(&self) -> SegmentSelector
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SegmentSelector
impl Debug for SegmentSelector
impl Copy for SegmentSelector
Auto Trait Implementations§
impl Freeze for SegmentSelector
impl RefUnwindSafe for SegmentSelector
impl Send for SegmentSelector
impl Sync for SegmentSelector
impl Unpin for SegmentSelector
impl UnwindSafe for SegmentSelector
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