Struct lspci::ReadBarCommand
source · pub struct ReadBarCommand {
pub device: Filter,
pub bar_id: u8,
pub offset: u64,
pub size: u64,
pub verbose: bool,
}
Expand description
Read from an MMIO BAR of a specified device. For example, to read from BAR 2 of device at address 00:01.0: lspci read 00:01.0 2
Fields§
§device: Filter
device address in BDF format BB:DD.F.
bar_id: u8
BAR id to read from.
offset: u64
offset into the BAR to read [default = 0x0].
size: u64
how much to read [default = 0x80].
verbose: bool
print verbose read information
Trait Implementations§
source§impl Clone for ReadBarCommand
impl Clone for ReadBarCommand
source§fn clone(&self) -> ReadBarCommand
fn clone(&self) -> ReadBarCommand
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 ReadBarCommand
impl Debug for ReadBarCommand
source§impl Default for ReadBarCommand
impl Default for ReadBarCommand
source§fn default() -> ReadBarCommand
fn default() -> ReadBarCommand
Returns the “default value” for a type. Read more
source§impl FromArgs for ReadBarCommand
impl FromArgs for ReadBarCommand
source§fn from_args(__cmd_name: &[&str], __args: &[&str]) -> Result<Self, EarlyExit>
fn from_args(__cmd_name: &[&str], __args: &[&str]) -> Result<Self, EarlyExit>
Construct the type from an input set of arguments. Read more
source§fn redact_arg_values(
__cmd_name: &[&str],
__args: &[&str],
) -> Result<Vec<String>, EarlyExit>
fn redact_arg_values( __cmd_name: &[&str], __args: &[&str], ) -> Result<Vec<String>, EarlyExit>
Get a String with just the argument names, e.g., options, flags, subcommands, etc, but
without the values of the options and arguments. This can be useful as a means to capture
anonymous usage statistics without revealing the content entered by the end user. Read more
source§impl PartialEq for ReadBarCommand
impl PartialEq for ReadBarCommand
source§fn eq(&self, other: &ReadBarCommand) -> bool
fn eq(&self, other: &ReadBarCommand) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl SubCommand for ReadBarCommand
impl SubCommand for ReadBarCommand
impl Copy for ReadBarCommand
impl StructuralPartialEq for ReadBarCommand
Auto Trait Implementations§
impl Freeze for ReadBarCommand
impl RefUnwindSafe for ReadBarCommand
impl Send for ReadBarCommand
impl Sync for ReadBarCommand
impl Unpin for ReadBarCommand
impl UnwindSafe for ReadBarCommand
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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
)§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> SubCommands for Twhere
T: SubCommand,
impl<T> SubCommands for Twhere
T: SubCommand,
§fn dynamic_commands() -> &'static [&'static CommandInfo<'static>]
fn dynamic_commands() -> &'static [&'static CommandInfo<'static>]
Get a list of commands that are discovered at runtime.