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.
Auto Trait Implementations§
impl Freeze for LinkGetRequest
impl !RefUnwindSafe for LinkGetRequest
impl Send for LinkGetRequest
impl Sync for LinkGetRequest
impl Unpin for LinkGetRequest
impl !UnwindSafe for LinkGetRequest
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