Struct Lpm
pub struct Lpm {
pub(crate) inner: Lpm,
}Expand description
Connection to the LPM kernel module.
See the crate level documentation for more information.
Fields§
§inner: LpmImplementations§
§impl Lpm
impl Lpm
pub fn new(config: Config) -> Result<Self>
pub fn new(config: Config) -> Result<Self>
Loads the LPM kernel module with config and connects to it.
If the module is already loaded, it is unloaded first. Dropping the
Lpm unloads the module.
§Errors
Returns an error if the pull selection can’t be set, the kernel module
can’t be loaded or the netlink handshake fails. Returns
io::ErrorKind::ResourceBusy if another process uses the module and
io::ErrorKind::Unsupported on platforms other than Linux.
§Panics
Panics if it isn’t called within a Tokio runtime with the I/O driver enabled.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Lpm
impl !UnwindSafe for Lpm
impl Freeze for Lpm
impl Send for Lpm
impl Sync for Lpm
impl Unpin for Lpm
impl UnsafeUnpin for Lpm
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