pub struct Controller { /* private fields */ }Expand description
A controller for filtering state.
Implementations§
Source§impl Controller
impl Controller
pub async fn new_root( root: &FilterProxy, __arg1: &ControllerId, ) -> Result<Self, ControllerCreationError>
Sourcepub async fn new(
control: &ControlProxy,
__arg1: &ControllerId,
) -> Result<Self, ControllerCreationError>
pub async fn new( control: &ControlProxy, __arg1: &ControllerId, ) -> Result<Self, ControllerCreationError>
Creates a new Controller.
Note that the provided ControllerId may need to be modified server-
side to avoid collisions; to obtain the final ID assigned to the
Controller, use the id method.
pub fn id(&self) -> &ControllerId
pub async fn register_ebpf_program( &mut self, handle: ProgramHandle, program: VerifiedProgram, ) -> Result<(), RegisterEbpfProgramError>
pub async fn push_changes( &mut self, changes: Vec<Change>, ) -> Result<(), PushChangesError>
pub async fn commit(&mut self) -> Result<(), CommitError>
pub async fn commit_idempotent(&mut self) -> Result<(), CommitError>
Auto Trait Implementations§
impl Freeze for Controller
impl !RefUnwindSafe for Controller
impl Send for Controller
impl Sync for Controller
impl Unpin for Controller
impl UnsafeUnpin for Controller
impl !UnwindSafe for Controller
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