pub struct SystemControl {
a20: bool,
reset: bool,
}Expand description
State of the system-control ports.
Fields§
§a20: bool§reset: boolImplementations§
Source§impl SystemControl
impl SystemControl
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates the model with A20 enabled, as firmware leaves it for a boot.
Sourcepub const fn reset_requested(&self) -> bool
pub const fn reset_requested(&self) -> bool
True if the guest asked for a machine reset.
Sourcepub fn take_reset(&mut self) -> bool
pub fn take_reset(&mut self) -> bool
Takes a pending reset request.
Trait Implementations§
Source§impl Clone for SystemControl
impl Clone for SystemControl
impl Copy for SystemControl
Source§impl Debug for SystemControl
impl Debug for SystemControl
Source§impl Default for SystemControl
impl Default for SystemControl
impl Eq for SystemControl
Source§impl PartialEq for SystemControl
impl PartialEq for SystemControl
impl StructuralPartialEq for SystemControl
Auto Trait Implementations§
impl Forget for SystemControl
impl Freeze for SystemControl
impl Move for SystemControl
impl RefUnwindSafe for SystemControl
impl Send for SystemControl
impl Sync for SystemControl
impl Unpin for SystemControl
impl UnsafeUnpin for SystemControl
impl UnwindSafe for SystemControl
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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