pub struct OpGetlinkDo<'r> { /* private fields */ }Available on crate feature
rt-link only.Expand description
Get / dump information about a link.
Request attributes:
Reply attributes:
- .get_address()
- .get_broadcast()
- .get_ifname()
- .get_mtu()
- .get_link()
- .get_qdisc()
- .get_stats()
- .get_master()
- .get_wireless()
- .get_protinfo()
- .get_txqlen()
- .get_map()
- .get_weight()
- .get_operstate()
- .get_linkmode()
- .get_linkinfo()
- .get_net_ns_pid()
- .get_ifalias()
- .get_num_vf()
- .get_vfinfo_list()
- .get_stats64()
- .get_vf_ports()
- .get_port_self()
- .get_af_spec()
- .get_group()
- .get_net_ns_fd()
- .get_ext_mask()
- .get_promiscuity()
- .get_num_tx_queues()
- .get_num_rx_queues()
- .get_carrier()
- .get_phys_port_id()
- .get_carrier_changes()
- .get_phys_switch_id()
- .get_link_netnsid()
- .get_phys_port_name()
- .get_proto_down()
- .get_gso_max_segs()
- .get_gso_max_size()
- .get_xdp()
- .get_event()
- .get_new_netnsid()
- .get_target_netnsid()
- .get_carrier_up_count()
- .get_carrier_down_count()
- .get_new_ifindex()
- .get_min_mtu()
- .get_max_mtu()
- .get_prop_list()
- .get_perm_address()
- .get_proto_down_reason()
- .get_parent_dev_name()
- .get_parent_dev_bus_name()
- .get_gro_max_size()
- .get_tso_max_size()
- .get_tso_max_segs()
- .get_allmulti()
- .get_devlink_port()
- .get_gso_ipv4_max_size()
- .get_gro_ipv4_max_size()
Implementations§
Source§impl<'r> OpGetlinkDo<'r>
impl<'r> OpGetlinkDo<'r>
pub fn new(request: Request<'r>, header: &Ifinfomsg) -> Self
pub fn encode_request<'buf>( buf: &'buf mut Vec<u8>, header: &Ifinfomsg, ) -> PushLinkAttrs<&'buf mut Vec<u8>>
pub fn encode(&mut self) -> PushLinkAttrs<&mut Vec<u8>>
pub fn into_encoder(self) -> PushLinkAttrs<RequestBuf<'r>>
pub fn decode_request<'a>(buf: &'a [u8]) -> (Ifinfomsg, IterableLinkAttrs<'a>)
Trait Implementations§
Source§impl<'r> Debug for OpGetlinkDo<'r>
impl<'r> Debug for OpGetlinkDo<'r>
Source§impl NetlinkRequest for OpGetlinkDo<'_>
impl NetlinkRequest for OpGetlinkDo<'_>
type ReplyType<'buf> = (Ifinfomsg, IterableLinkAttrs<'buf>)
fn decode_reply<'buf>(buf: &'buf [u8]) -> Self::ReplyType<'buf>
Auto Trait Implementations§
impl<'r> !UnwindSafe for OpGetlinkDo<'r>
impl<'r> Freeze for OpGetlinkDo<'r>
impl<'r> RefUnwindSafe for OpGetlinkDo<'r>
impl<'r> Send for OpGetlinkDo<'r>
impl<'r> Sync for OpGetlinkDo<'r>
impl<'r> Unpin for OpGetlinkDo<'r>
impl<'r> UnsafeUnpin for OpGetlinkDo<'r>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more