pub struct Datapath(/* private fields */);Expand description
Represents datapath functionality. libccp state is freed when this is dropped.
Implementations§
Source§impl Datapath
impl Datapath
Sourcepub fn init<T: DatapathOps + 'static>(dp: T) -> Result<Self, LibccpError>
👎Deprecated since 1.1.0: Please use DatapathBuilder instead.
pub fn init<T: DatapathOps + 'static>(dp: T) -> Result<Self, LibccpError>
Call DatapathBuilder with default id = 0.
Uses datapath id 0.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Datapath
impl RefUnwindSafe for Datapath
impl Unpin for Datapath
impl UnwindSafe for Datapath
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