pub struct ProbeReport {
pub xdp_compiled: bool,
pub sendmmsg_compiled: bool,
pub pnet_compiled: bool,
pub kernel: Option<(u32, u32)>,
pub cap_net_raw: bool,
pub libbpf_present: bool,
pub selected: Backend,
}Expand description
Result of probing the runtime for backend availability.
Each field is independently testable so a CLI / test can show a clear go / no-go matrix.
Fields§
§xdp_compiled: boolXDP feature compiled into this build.
sendmmsg_compiled: boolsendmmsg feature compiled into this build.
pnet_compiled: boolpnet feature compiled into this build.
kernel: Option<(u32, u32)>Detected kernel version, if Linux. (major, minor) — patch is dropped.
cap_net_raw: boolProcess holds CAP_NET_RAW (best-effort: euid==0 is the proxy).
libbpf_present: boolBest-effort probe for libbpf availability (file present).
selected: BackendBackend netforge::engine::auto_select would pick now.
Implementations§
Source§impl ProbeReport
impl ProbeReport
Sourcepub fn render_table(&self) -> String
pub fn render_table(&self) -> String
Render a multi-line table for human consumption (CLI output).
Trait Implementations§
Source§impl Clone for ProbeReport
impl Clone for ProbeReport
Source§fn clone(&self) -> ProbeReport
fn clone(&self) -> ProbeReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProbeReport
impl Debug for ProbeReport
Source§impl PartialEq for ProbeReport
impl PartialEq for ProbeReport
Source§fn eq(&self, other: &ProbeReport) -> bool
fn eq(&self, other: &ProbeReport) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ProbeReport
impl StructuralPartialEq for ProbeReport
Auto Trait Implementations§
impl Freeze for ProbeReport
impl RefUnwindSafe for ProbeReport
impl Send for ProbeReport
impl Sync for ProbeReport
impl Unpin for ProbeReport
impl UnsafeUnpin for ProbeReport
impl UnwindSafe for ProbeReport
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.