pub struct OpNewlinkDo<'r> { /* private fields */ }Available on crate feature
rt-link only.Expand description
Create a new link.
Request attributes:
- .push_address()
- .push_broadcast()
- .push_ifname()
- .push_mtu()
- .push_txqlen()
- .push_operstate()
- .push_linkmode()
- .nested_linkinfo()
- .push_net_ns_pid()
- .nested_af_spec()
- .push_group()
- .push_net_ns_fd()
- .push_num_tx_queues()
- .push_num_rx_queues()
- .push_link_netnsid()
- .push_gso_max_segs()
- .push_gso_max_size()
- .push_target_netnsid()
- .push_gro_max_size()
- .push_gso_ipv4_max_size()
- .push_gro_ipv4_max_size()
Implementations§
Source§impl<'r> OpNewlinkDo<'r>
impl<'r> OpNewlinkDo<'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 OpNewlinkDo<'r>
impl<'r> Debug for OpNewlinkDo<'r>
Source§impl NetlinkRequest for OpNewlinkDo<'_>
impl NetlinkRequest for OpNewlinkDo<'_>
type ReplyType<'buf> = (Ifinfomsg, IterableLinkAttrs<'buf>)
fn decode_reply<'buf>(buf: &'buf [u8]) -> Self::ReplyType<'buf>
Auto Trait Implementations§
impl<'r> !UnwindSafe for OpNewlinkDo<'r>
impl<'r> Freeze for OpNewlinkDo<'r>
impl<'r> RefUnwindSafe for OpNewlinkDo<'r>
impl<'r> Send for OpNewlinkDo<'r>
impl<'r> Sync for OpNewlinkDo<'r>
impl<'r> Unpin for OpNewlinkDo<'r>
impl<'r> UnsafeUnpin for OpNewlinkDo<'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