pub struct Handle(_);
Expand description
A handle to the netlink connection, used to send and receive netlink messsage
Implementations
sourceimpl Handle
impl Handle
sourcepub fn request(
&mut self,
message: NetlinkMessage
) -> impl Stream<Item = NetlinkMessage, Error = Error>
pub fn request(
&mut self,
message: NetlinkMessage
) -> impl Stream<Item = NetlinkMessage, Error = Error>
Send a netlink message, and get the reponse as a stream of messages.
sourcepub fn add_rule(
&mut self,
rule: RuleMessage
) -> impl Future<Item = (), Error = Error>
pub fn add_rule(
&mut self,
rule: RuleMessage
) -> impl Future<Item = (), Error = Error>
Add the given rule
sourcepub fn list_rules(&mut self) -> impl Stream<Item = RuleMessage, Error = Error>
pub fn list_rules(&mut self) -> impl Stream<Item = RuleMessage, Error = Error>
List the current rules
sourcepub fn enable_events(&mut self) -> impl Future<Item = (), Error = Error>
pub fn enable_events(&mut self) -> impl Future<Item = (), Error = Error>
Enable receiving audit events
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Handle
impl Send for Handle
impl Sync for Handle
impl Unpin for Handle
impl !UnwindSafe for Handle
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more