pub struct SriovInfo {
pub cap_offset: u16,
pub control: u16,
pub status: u16,
pub initial_vf: u16,
pub total_vf: u16,
pub num_vf: u16,
pub enabled: bool,
}Expand description
SR-IOV capability information.
Fields§
§cap_offset: u16Offset of the SR-IOV capability in config space.
control: u16SR-IOV Control register value.
status: u16SR-IOV Status register value.
initial_vf: u16Number of initial VFs at power-on.
total_vf: u16Total number of VFs supported.
num_vf: u16Number of VFs currently enabled.
enabled: boolWhether SR-IOV is currently enabled.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SriovInfo
impl RefUnwindSafe for SriovInfo
impl Send for SriovInfo
impl Sync for SriovInfo
impl Unpin for SriovInfo
impl UnsafeUnpin for SriovInfo
impl UnwindSafe for SriovInfo
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,
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