ethtool-xujunjie 0.2.5

Linux Ethtool Communication Library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// SPDX-License-Identifier: MIT

use crate::{EthtoolHandle, EthtoolTsInfoGetRequest};

pub struct EthtoolTsInfoHandle(EthtoolHandle);

impl EthtoolTsInfoHandle {
    pub fn new(handle: EthtoolHandle) -> Self {
        EthtoolTsInfoHandle(handle)
    }

    /// Retrieve the ethtool timestamping capabilities of an interface
    pub fn get(&mut self, iface_name: Option<&str>) -> EthtoolTsInfoGetRequest {
        EthtoolTsInfoGetRequest::new(self.0.clone(), iface_name)
    }
}