[−][src]Struct sysfs_class::ScsiHost
Fetch and modify SCSI host parameters.
Methods
impl ScsiHost
[src]
pub fn active_mod(&self) -> Result<String>
[src]
pub fn can_queue(&self) -> Result<i32>
[src]
pub fn host_busy(&self) -> Result<u8>
[src]
pub fn link_power_management_policy(&self) -> Result<String>
[src]
pub fn set_link_power_management_policy<'b>(
&self,
profiles: &[&'b str]
) -> Result<&'b str>
[src]
&self,
profiles: &[&'b str]
) -> Result<&'b str>
Sets the power management profile for this SCSI host.
Multiple profiles are given, and each profile is tried until one succeeds.
pub fn proc_name(&self) -> Result<String>
[src]
pub fn sg_tablesize(&self) -> Result<i32>
[src]
pub fn state(&self) -> Result<String>
[src]
pub fn supported_mode(&self) -> Result<u8>
[src]
pub fn use_blk_mq(&self) -> Result<u8>
[src]
Trait Implementations
impl Clone for ScsiHost
[src]
impl SysClass for ScsiHost
[src]
fn class() -> &'static str
[src]
unsafe fn from_path_unchecked(path: PathBuf) -> Self
[src]
fn path(&self) -> &Path
[src]
fn base() -> &'static str
[src]
fn dir() -> PathBuf
[src]
fn from_path(path: &Path) -> Result<Self>
[src]
fn all() -> Result<Vec<Self>>
[src]
fn iter() -> Box<dyn Iterator<Item = Result<Self>>> where
Self: 'static,
[src]
Self: 'static,
fn new(id: &str) -> Result<Self>
[src]
fn id(&self) -> &str
[src]
fn read_file<P: AsRef<Path>>(&self, name: P) -> Result<String>
[src]
fn parse_file<F: FromStr, P: AsRef<Path>>(&self, name: P) -> Result<F> where
F::Err: Display,
[src]
F::Err: Display,
fn trim_file<P: AsRef<Path>>(&self, name: P) -> Result<String>
[src]
fn write_file<P: AsRef<Path>, S: AsRef<[u8]>>(
&self,
name: P,
data: S
) -> Result<()>
[src]
&self,
name: P,
data: S
) -> Result<()>
Auto Trait Implementations
impl RefUnwindSafe for ScsiHost
impl Send for ScsiHost
impl Sync for ScsiHost
impl Unpin for ScsiHost
impl UnwindSafe for ScsiHost
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,