# Hstatus in riscv::register::hstatus - Rust
API documentation for the Rust `Hstatus` struct in crate `riscv`.
Keywords: rust, rustlang, rust-lang, Hstatus

# Struct riscv::register::hstatus::Hstatus

source · [−]

    pub struct Hstatus { /* private fields */ }

## Implementations

source

### impl Hstatus

source

#### pub fn bits(&self) -> usize

source

#### pub fn from_bits(x: usize) -> Self

source

#### pub unsafe fn write(&self)

source

#### pub fn vsxl(&self) -> VsxlValues

Effective XLEN for VM.

source

#### pub fn set_vsxl(&mut self, val: VsxlValues)

source

#### pub fn vtsr(&self) -> bool

TSR for VM.

source

#### pub fn set_vtsr(&mut self, val: bool)

source

#### pub fn vtw(&self) -> bool

TW for VM.

source

#### pub fn set_vtw(&mut self, val: bool)

source

#### pub fn vtvm(&self) -> bool

TVM for VM.

source

#### pub fn set_vtvm(&mut self, val: bool)

source

#### pub fn vgein(&self) -> usize

Virtual Guest External Interrupt Number.

source

#### pub fn set_vgein(&mut self, val: usize)

source

#### pub fn hu(&self) -> bool

Hypervisor User mode.

source

#### pub fn set_hu(&mut self, val: bool)

source

#### pub fn spvp(&self) -> bool

Supervisor Previous Virtual Privilege.

source

#### pub fn set_spvp(&mut self, val: bool)

source

#### pub fn spv(&self) -> bool

Supervisor Previous Virtualization mode.

source

#### pub fn set_spv(&mut self, val: bool)

source

#### pub fn gva(&self) -> bool

Guest Virtual Address.

source

#### pub fn set_gva(&mut self, val: bool)

source

#### pub fn vsbe(&self) -> bool

VS access endianness.

source

#### pub fn set_vsbe(&mut self, val: bool)

## Trait Implementations

source

### impl Clone for Hstatus

source

#### fn clone(&self) -> Hstatus

Returns a copy of the value. Read more

1.0.0 · source

#### fn clone_from(&mut self, source: &Self)

Performs copy-assignment from `source`. Read more

source

### impl Debug for Hstatus

source

#### fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

source

### impl Copy for Hstatus

## Auto Trait Implementations

### impl RefUnwindSafe for Hstatus

### impl Send for Hstatus

### impl Sync for Hstatus

### impl Unpin for Hstatus

### impl UnwindSafe for Hstatus

## Blanket Implementations

source

### impl<T> Any for T where
T: 'static + ?Sized,

source

#### fn type_id(&self) -> TypeId

Gets the `TypeId` of `self`. Read more

source

### impl<T> Borrow<T> for T where
T: ?Sized,

const: unstable · source

#### fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more

source

### impl<T> BorrowMut<T> for T where
T: ?Sized,

const: unstable · source

#### fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more

source

### impl<T> From<T> for T

const: unstable · source

#### fn from(t: T) -> T

Returns the argument unchanged.

source

### impl<T, U> Into<U> for T where
U: From<T>,

const: unstable · source

#### fn into(self) -> U

Calls `U::from(self)`.

That is, this conversion is whatever the implementation of `From<T> for U` chooses to do.

source

### impl<T, U> TryFrom<U> for T where
U: Into<T>,

#### type Error = Infallible

The type returned in the event of a conversion error.

const: unstable · source

#### fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.

source

### impl<T, U> TryInto<U> for T where
U: TryFrom<T>,

#### type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

const: unstable · source

#### fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.