Struct hvdef::hypercall::HvGuestOsOpenSource
source · pub struct HvGuestOsOpenSource(/* private fields */);
Implementations§
source§impl HvGuestOsOpenSource
impl HvGuestOsOpenSource
sourcepub const fn with_build_no(self, value: u16) -> Self
pub const fn with_build_no(self, value: u16) -> Self
Bits: 0..16
sourcepub fn set_build_no(&mut self, value: u16)
pub fn set_build_no(&mut self, value: u16)
Bits: 0..16
sourcepub const fn with_version(self, value: u32) -> Self
pub const fn with_version(self, value: u32) -> Self
Bits: 16..48
sourcepub fn set_version(&mut self, value: u32)
pub fn set_version(&mut self, value: u32)
Bits: 16..48
sourcepub const fn with_os_id(self, value: u8) -> Self
pub const fn with_os_id(self, value: u8) -> Self
Bits: 48..56
sourcepub const fn with_os_type(self, value: u8) -> Self
pub const fn with_os_type(self, value: u8) -> Self
Bits: 56..63
sourcepub fn set_os_type(&mut self, value: u8)
pub fn set_os_type(&mut self, value: u8)
Bits: 56..63
sourcepub const fn is_open_source(&self) -> bool
pub const fn is_open_source(&self) -> bool
Bits: 63..64
sourcepub const fn with_is_open_source(self, value: bool) -> Self
pub const fn with_is_open_source(self, value: bool) -> Self
Bits: 63..64
sourcepub fn set_is_open_source(&mut self, value: bool)
pub fn set_is_open_source(&mut self, value: bool)
Bits: 63..64
Trait Implementations§
source§impl Clone for HvGuestOsOpenSource
impl Clone for HvGuestOsOpenSource
source§fn clone(&self) -> HvGuestOsOpenSource
fn clone(&self) -> HvGuestOsOpenSource
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 HvGuestOsOpenSource
impl Debug for HvGuestOsOpenSource
source§impl Default for HvGuestOsOpenSource
impl Default for HvGuestOsOpenSource
source§impl From<HvGuestOsOpenSource> for u64
impl From<HvGuestOsOpenSource> for u64
source§fn from(v: HvGuestOsOpenSource) -> u64
fn from(v: HvGuestOsOpenSource) -> u64
Converts to this type from the input type.
source§impl From<u64> for HvGuestOsOpenSource
impl From<u64> for HvGuestOsOpenSource
impl Copy for HvGuestOsOpenSource
Auto Trait Implementations§
impl Freeze for HvGuestOsOpenSource
impl RefUnwindSafe for HvGuestOsOpenSource
impl Send for HvGuestOsOpenSource
impl Sync for HvGuestOsOpenSource
impl Unpin for HvGuestOsOpenSource
impl UnwindSafe for HvGuestOsOpenSource
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)