Struct fidl_fuchsia_net_filter_ext::sync::Controller
source · pub struct Controller { /* private fields */ }
Expand description
A controller for filtering state with blocking methods.
Implementations§
source§impl Controller
impl Controller
sourcepub fn new(
control: &ControlSynchronousProxy,
ControllerId: &ControllerId,
deadline: MonotonicInstant,
) -> Result<Self, ControllerCreationError>
pub fn new( control: &ControlSynchronousProxy, ControllerId: &ControllerId, deadline: MonotonicInstant, ) -> 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 fn push_changes( &mut self, changes: Vec<Change>, deadline: MonotonicInstant, ) -> Result<(), PushChangesError>
pub fn commit_with_options( &mut self, options: CommitOptions, deadline: MonotonicInstant, ) -> Result<(), CommitError>
pub fn commit(&mut self, deadline: MonotonicInstant) -> Result<(), CommitError>
pub fn commit_idempotent( &mut self, deadline: MonotonicInstant, ) -> 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 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
source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
type Error = <U as TryFromExt<T>>::Error
source§fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
Tries to perform the conversion.