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§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§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.