use crate::{EthtoolFeatureGetRequest, EthtoolHandle};
pub struct EthtoolFeatureHandle(EthtoolHandle);
impl EthtoolFeatureHandle {
pub fn new(handle: EthtoolHandle) -> Self {
EthtoolFeatureHandle(handle)
}
pub fn get(
&mut self,
iface_name: Option<&str>,
) -> EthtoolFeatureGetRequest {
EthtoolFeatureGetRequest::new(self.0.clone(), iface_name)
}
}