pub struct LoopControlStateRef<'a> { /* private fields */ }Expand description
Typed state reference for reading and writing state.
All modifications are automatically collected by the associated PatchSink.
Implementations§
Source§impl<'a> LoopControlStateRef<'a>
impl<'a> LoopControlStateRef<'a>
Sourcepub fn pending_interaction(&self) -> TireaResult<Option<Interaction>>
pub fn pending_interaction(&self) -> TireaResult<Option<Interaction>>
Read the optional field value.
Sourcepub fn pending_frontend_invocation(
&self,
) -> TireaResult<Option<FrontendToolInvocation>>
pub fn pending_frontend_invocation( &self, ) -> TireaResult<Option<FrontendToolInvocation>>
Read the optional field value.
Sourcepub fn inference_error(&self) -> TireaResult<Option<InferenceError>>
pub fn inference_error(&self) -> TireaResult<Option<InferenceError>>
Read the optional field value.
Sourcepub fn set_pending_interaction(
&self,
value: Option<Interaction>,
) -> TireaResult<()>
pub fn set_pending_interaction( &self, value: Option<Interaction>, ) -> TireaResult<()>
Set the optional field value.
Sourcepub fn pending_interaction_none(&self) -> TireaResult<()>
pub fn pending_interaction_none(&self) -> TireaResult<()>
Set the optional field to null (None).
Sourcepub fn set_pending_frontend_invocation(
&self,
value: Option<FrontendToolInvocation>,
) -> TireaResult<()>
pub fn set_pending_frontend_invocation( &self, value: Option<FrontendToolInvocation>, ) -> TireaResult<()>
Set the optional field value.
Sourcepub fn pending_frontend_invocation_none(&self) -> TireaResult<()>
pub fn pending_frontend_invocation_none(&self) -> TireaResult<()>
Set the optional field to null (None).
Sourcepub fn set_inference_error(
&self,
value: Option<InferenceError>,
) -> TireaResult<()>
pub fn set_inference_error( &self, value: Option<InferenceError>, ) -> TireaResult<()>
Set the optional field value.
Sourcepub fn inference_error_none(&self) -> TireaResult<()>
pub fn inference_error_none(&self) -> TireaResult<()>
Set the optional field to null (None).
Sourcepub fn delete_pending_interaction(&self) -> TireaResult<()>
pub fn delete_pending_interaction(&self) -> TireaResult<()>
Delete this field entirely from the object.
Sourcepub fn delete_pending_frontend_invocation(&self) -> TireaResult<()>
pub fn delete_pending_frontend_invocation(&self) -> TireaResult<()>
Delete this field entirely from the object.
Sourcepub fn delete_inference_error(&self) -> TireaResult<()>
pub fn delete_inference_error(&self) -> TireaResult<()>
Delete this field entirely from the object.
Auto Trait Implementations§
impl<'a> Freeze for LoopControlStateRef<'a>
impl<'a> !RefUnwindSafe for LoopControlStateRef<'a>
impl<'a> Send for LoopControlStateRef<'a>
impl<'a> Sync for LoopControlStateRef<'a>
impl<'a> Unpin for LoopControlStateRef<'a>
impl<'a> UnsafeUnpin for LoopControlStateRef<'a>
impl<'a> !UnwindSafe for LoopControlStateRef<'a>
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