Struct rtnetlink::LinkGetRequest
source · pub struct LinkGetRequest { /* private fields */ }
Implementations§
source§impl LinkGetRequest
impl LinkGetRequest
sourcepub fn set_filter_mask(self, family: u8, filter_mask: u32) -> Self
pub fn set_filter_mask(self, family: u8, filter_mask: u32) -> Self
Setting filter mask(e.g. RTEXT_FILTER_BRVLAN and etc)
sourcepub fn execute(self) -> impl TryStream<Ok = LinkMessage, Error = Error>
pub fn execute(self) -> impl TryStream<Ok = LinkMessage, Error = Error>
Execute the request
sourcepub fn message_mut(&mut self) -> &mut LinkMessage
pub fn message_mut(&mut self) -> &mut LinkMessage
Return a mutable reference to the request
sourcepub fn match_index(self, index: u32) -> Self
pub fn match_index(self, index: u32) -> Self
Lookup a link by index
sourcepub fn match_name(self, name: String) -> Self
pub fn match_name(self, name: String) -> Self
Lookup a link by name
This function requires support from your kernel (>= 2.6.33). If yours is older, consider filtering the resulting stream of links.