#[non_exhaustive]#[repr(u64)]pub enum HypercallAddress {
Show 13 variants
Exit = 4_112,
SerialWriteByte = 4_128,
SerialWriteBuffer = 4_144,
SerialReadByte = 4_160,
SerialReadBuffer = 4_176,
FileWrite = 4_352,
FileOpen = 4_368,
FileClose = 4_384,
FileRead = 4_400,
FileLseek = 4_416,
FileUnlink = 4_432,
SharedMemOpen = 4_608,
SharedMemClose = 4_624,
}Expand description
Enum containing all valid MMIO addresses for hypercalls.
The discriminants of this enum are the respective addresses, so one can get the code by calling
e.g., HypercallAddress::Exit as u64.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Exit = 4_112
SerialWriteByte = 4_128
SerialWriteBuffer = 4_144
SerialReadByte = 4_160
SerialReadBuffer = 4_176
FileWrite = 4_352
FileOpen = 4_368
FileClose = 4_384
FileRead = 4_400
FileLseek = 4_416
FileUnlink = 4_432
Trait Implementations§
Source§impl Clone for HypercallAddress
impl Clone for HypercallAddress
Source§fn clone(&self) -> HypercallAddress
fn clone(&self) -> HypercallAddress
Returns a duplicate 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 HypercallAddress
impl Debug for HypercallAddress
Source§impl From<&Hypercall<'_>> for HypercallAddress
impl From<&Hypercall<'_>> for HypercallAddress
Source§impl From<Hypercall<'_>> for HypercallAddress
impl From<Hypercall<'_>> for HypercallAddress
Source§impl Hash for HypercallAddress
impl Hash for HypercallAddress
Source§impl PartialEq for HypercallAddress
impl PartialEq for HypercallAddress
Source§impl TryFrom<u64> for HypercallAddress
impl TryFrom<u64> for HypercallAddress
Source§type Error = TryFromPrimitiveError<HypercallAddress>
type Error = TryFromPrimitiveError<HypercallAddress>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for HypercallAddress
impl TryFromPrimitive for HypercallAddress
const NAME: &'static str = "HypercallAddress"
type Primitive = u64
type Error = TryFromPrimitiveError<HypercallAddress>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for HypercallAddress
impl Eq for HypercallAddress
impl StructuralPartialEq for HypercallAddress
Auto Trait Implementations§
impl Freeze for HypercallAddress
impl RefUnwindSafe for HypercallAddress
impl Send for HypercallAddress
impl Sync for HypercallAddress
impl Unpin for HypercallAddress
impl UnsafeUnpin for HypercallAddress
impl UnwindSafe for HypercallAddress
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