Trait emulator_hal::Inspect
source · pub trait Inspect<Address, Bus, Writer>{
type InfoType;
type Error;
// Required methods
fn inspect(
&mut self,
info: Self::InfoType,
bus: &mut Bus,
writer: &mut Writer
) -> Result<(), Self::Error>;
fn brief_summary(
&mut self,
bus: &mut Bus,
writer: &mut Writer
) -> Result<(), Self::Error>;
fn detailed_summary(
&mut self,
bus: &mut Bus,
writer: &mut Writer
) -> Result<(), Self::Error>;
}
Expand description
Inspect the state of a device, and emit it to an object that implements fmt::Write
Required Associated Types§
Required Methods§
sourcefn inspect(
&mut self,
info: Self::InfoType,
bus: &mut Bus,
writer: &mut Writer
) -> Result<(), Self::Error>
fn inspect( &mut self, info: Self::InfoType, bus: &mut Bus, writer: &mut Writer ) -> Result<(), Self::Error>
Write the given information type to the given writer, or return an error
sourcefn brief_summary(
&mut self,
bus: &mut Bus,
writer: &mut Writer
) -> Result<(), Self::Error>
fn brief_summary( &mut self, bus: &mut Bus, writer: &mut Writer ) -> Result<(), Self::Error>
Write a brief summary of the device’s current state to the given writer, or return an error
sourcefn detailed_summary(
&mut self,
bus: &mut Bus,
writer: &mut Writer
) -> Result<(), Self::Error>
fn detailed_summary( &mut self, bus: &mut Bus, writer: &mut Writer ) -> Result<(), Self::Error>
Write a detailed summary of the device’s current state to the given writer, or return an error