pub trait SysEntityAttributesExt<A: SysAttribute>: SysEntityAttributes<A> + Sized {
// Provided methods
fn capable<C: Capabilities<A, Self>>(&self, capabilities: C) -> bool { ... }
fn attribute<T: FromStr<Err = E>, E>(
&self,
attr: A,
) -> Result<T, EitherErr2<Error, E>> { ... }
fn set<V: ToString>(&self, attr: A, value: V) -> IoResult<()> { ... }
fn read_value(&self, attr: &A) -> IoResult<Vec<u8>> { ... }
fn write_value(&self, attr: &A, value: &[u8]) -> IoResult<()> { ... }
fn exists(&self, attr: &A) -> bool { ... }
}Expand description
sysfs class entity attribute type extension
Provided Methods§
Sourcefn capable<C: Capabilities<A, Self>>(&self, capabilities: C) -> bool
fn capable<C: Capabilities<A, Self>>(&self, capabilities: C) -> bool
Returns true if self is capable of the provided capabilities
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.