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