ethtool/channel/
handle.rs1use crate::{
4 EthtoolChannelGetRequest, EthtoolChannelSetRequest, EthtoolHandle,
5};
6
7pub struct EthtoolChannelHandle(EthtoolHandle);
8
9impl EthtoolChannelHandle {
10 pub fn new(handle: EthtoolHandle) -> Self {
11 EthtoolChannelHandle(handle)
12 }
13
14 pub fn get(
17 &mut self,
18 iface_name: Option<&str>,
19 ) -> EthtoolChannelGetRequest {
20 EthtoolChannelGetRequest::new(self.0.clone(), iface_name)
21 }
22
23 pub fn set(&mut self, iface_name: &str) -> EthtoolChannelSetRequest {
26 EthtoolChannelSetRequest::new(self.0.clone(), iface_name)
27 }
28}