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