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