pub struct AbortHandle { /* private fields */ }Expand description
An abort handle, used to forcibly cancel update engine executions.
Implementations§
Source§impl AbortHandle
impl AbortHandle
Sourcepub fn abort(&self, message: impl Into<String>) -> Result<AbortWaiter, String>
pub fn abort(&self, message: impl Into<String>) -> Result<AbortWaiter, String>
Aborts this engine execution with a message.
This sends the message immediately, and returns a future that can be optionally waited against to block until the abort is processed.
If this engine is still running, it is aborted at the next
await point. The engine sends an ExecutionAborted message
over the wire, and an ExecutionError::Aborted is returned.
Returns Err(message) if the engine has already completed
execution.
Trait Implementations§
Source§impl Clone for AbortHandle
impl Clone for AbortHandle
Source§fn clone(&self) -> AbortHandle
fn clone(&self) -> AbortHandle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AbortHandle
impl RefUnwindSafe for AbortHandle
impl Send for AbortHandle
impl Sync for AbortHandle
impl Unpin for AbortHandle
impl UnsafeUnpin for AbortHandle
impl UnwindSafe for AbortHandle
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