pub struct LinkHandle<'a> {
pub socket: &'a mut SocketHandle,
}Fields§
§socket: &'a mut SocketHandleImplementations§
Source§impl LinkHandle<'_>
impl LinkHandle<'_>
pub fn add<T: Link + ?Sized>(&mut self, link: &T, flags: i32) -> Result<()>
pub fn delete<T: Link + ?Sized>(&mut self, link: &T) -> Result<()>
pub fn get(&mut self, attr: &LinkAttrs) -> Result<Box<dyn Link>>
pub fn list(&mut self) -> Result<Vec<Box<dyn Link>>>
pub fn up<T: Link + ?Sized>(&mut self, link: &T) -> Result<()>
pub fn set_master<T: Link + ?Sized>( &mut self, link: &T, master_index: i32, ) -> Result<()>
pub fn set_ns<T: Link + ?Sized>(&mut self, link: &T, ns: i32) -> Result<()>
pub fn set_name<T: Link + ?Sized>(&mut self, link: &T, name: &str) -> Result<()>
Methods from Deref<Target = SocketHandle>§
pub fn next_seq(&mut self) -> u32
pub fn handle_link(&mut self) -> LinkHandle<'_>
pub fn handle_addr(&mut self) -> AddrHandle<'_>
pub fn handle_route(&mut self) -> RouteHandle<'_>
pub fn handle_rule(&mut self) -> RuleHandle<'_>
pub fn handle_neigh(&mut self) -> NeighHandle<'_>
pub fn handle_generic(&mut self) -> GenericHandle<'_>
pub fn handle_sock_diag(&mut self) -> SockDiagHandle<'_>
pub fn request( &mut self, msg: &mut Message, res_type: u16, ) -> Result<Vec<Vec<u8>>>
Trait Implementations§
Source§impl<'a> Deref for LinkHandle<'a>
impl<'a> Deref for LinkHandle<'a>
Source§impl DerefMut for LinkHandle<'_>
impl DerefMut for LinkHandle<'_>
Source§impl<'a> From<&'a mut SocketHandle> for LinkHandle<'a>
impl<'a> From<&'a mut SocketHandle> for LinkHandle<'a>
Source§fn from(socket: &'a mut SocketHandle) -> Self
fn from(socket: &'a mut SocketHandle) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for LinkHandle<'a>
impl<'a> RefUnwindSafe for LinkHandle<'a>
impl<'a> Send for LinkHandle<'a>
impl<'a> Sync for LinkHandle<'a>
impl<'a> Unpin for LinkHandle<'a>
impl<'a> !UnwindSafe for LinkHandle<'a>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more