pub struct NetlinkSocket { /* private fields */ }Implementations§
Source§impl NetlinkSocket
impl NetlinkSocket
Sourcepub fn request_chained<'a, Chained>(
&'a mut self,
request: &'a Chained,
) -> Result<NetlinkReplyChained<'a>>where
Chained: NetlinkChained,
pub fn request_chained<'a, Chained>(
&'a mut self,
request: &'a Chained,
) -> Result<NetlinkReplyChained<'a>>where
Chained: NetlinkChained,
Execute a chained request (experimental)
Some subsystems have special requirements for related requests, expecting certain types of messages to be sent within a single write operation. For example transactions in nftables subsystem.
Chained requests currently don’t support replies carrying data.
Source§impl NetlinkSocket
impl NetlinkSocket
pub fn new() -> Self
Sourcepub fn reserve_seq(&mut self, len: u32) -> u32
pub fn reserve_seq(&mut self, len: u32) -> u32
Reserve a sequential chunk of seq values, so chained messages don’t
get confused. A random seq number might be used just as well.
pub fn request<'sock, Request>(
&'sock mut self,
request: &Request,
) -> Result<NetlinkReply<'sock, Request>>where
Request: NetlinkRequest,
Auto Trait Implementations§
impl Freeze for NetlinkSocket
impl RefUnwindSafe for NetlinkSocket
impl Send for NetlinkSocket
impl Sync for NetlinkSocket
impl Unpin for NetlinkSocket
impl UnwindSafe for NetlinkSocket
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