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> 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.