pub enum PagePoolInfo {
Id(u32),
Ifindex(u32),
}Available on crate feature
netdev only.Variants§
Id(u32)
Unique ID of a Page Pool instance.
Ifindex(u32)
ifindex of the netdev to which the pool belongs. May be reported as 0 if the page pool was allocated for a netdev which got destroyed already (page pools may outlast their netdevs because they wait for all memory to be returned).
Implementations§
Source§impl PagePoolInfo
impl PagePoolInfo
pub fn new<'a>(buf: &'a [u8]) -> IterablePagePoolInfo<'a> ⓘ
Trait Implementations§
Source§impl Clone for PagePoolInfo
impl Clone for PagePoolInfo
Source§fn clone(&self) -> PagePoolInfo
fn clone(&self) -> PagePoolInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PagePoolInfo
impl RefUnwindSafe for PagePoolInfo
impl Send for PagePoolInfo
impl Sync for PagePoolInfo
impl Unpin for PagePoolInfo
impl UnwindSafe for PagePoolInfo
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