[−][src]Struct sysfs_class::Net
Methods
impl Net
[src]
pub fn statistics(&self) -> NetStatistics
[src]
pub fn addr_assign_type(&self) -> Result<u8>
[src]
pub fn addr_len(&self) -> Result<u16>
[src]
pub fn address(&self) -> Result<String>
[src]
pub fn broadcast(&self) -> Result<String>
[src]
pub fn carrier(&self) -> Result<u16>
[src]
pub fn carrier_changes(&self) -> Result<u16>
[src]
pub fn carrier_down_count(&self) -> Result<u16>
[src]
pub fn carrier_up_count(&self) -> Result<u16>
[src]
pub fn dev_id(&self) -> Result<String>
[src]
pub fn dev_port(&self) -> Result<u16>
[src]
pub fn dormant(&self) -> Result<u8>
[src]
pub fn duplex(&self) -> Result<String>
[src]
pub fn mtu(&self) -> Result<u32>
[src]
pub fn operstate(&self) -> Result<String>
[src]
pub fn speed(&self) -> Result<u32>
[src]
pub fn tx_queue_len(&self) -> Result<u32>
[src]
Trait Implementations
impl Clone for Net
[src]
impl SysClass for Net
[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 Net
impl Send for Net
impl Sync for Net
impl Unpin for Net
impl UnwindSafe for Net
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>,