Enum hypervisor::x86_64::PitRWMode
source · #[repr(C)]pub enum PitRWMode {
None = 0,
Least = 1,
Most = 2,
Both = 3,
}
Expand description
The PitRWMode enum represents the access mode of a PIT channel. Reads and writes to the Pit happen over Port-mapped I/O, which happens one byte at a time, but the count values and latch values are two bytes. So the access mode controls which of the two bytes will be read when.
Variants§
None = 0
None mode means that no access mode has been set.
Least = 1
Least mode means all reads/writes will read/write the least significant byte.
Most = 2
Most mode means all reads/writes will read/write the most significant byte.
Both = 3
Both mode means first the least significant byte will be read/written, then the next read/write will read/write the most significant byte.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for PitRWMode
impl<'de> Deserialize<'de> for PitRWMode
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for PitRWMode
impl PartialEq for PitRWMode
impl Copy for PitRWMode
impl Eq for PitRWMode
impl StructuralPartialEq for PitRWMode
Auto Trait Implementations§
impl RefUnwindSafe for PitRWMode
impl Send for PitRWMode
impl Sync for PitRWMode
impl Unpin for PitRWMode
impl UnwindSafe for PitRWMode
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<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.