pub struct Operation(/* private fields */);Expand description
One sticky cancellation scope spans selection, preparation, confirmation and publication.
Implementations§
Source§impl Operation
impl Operation
Sourcepub fn new() -> Result<Self, Error>
pub fn new() -> Result<Self, Error>
Install only this operation’s signal subscriptions before invoking component work.
§Errors
Returns OS handler installation failures before creating a child or changing files.
Sourcepub fn is_cancelled(&self) -> bool
pub fn is_cancelled(&self) -> bool
A received cancellation remains set until the entire surrounding operation is dropped.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Operation
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnsafeUnpin for Operation
impl UnwindSafe for Operation
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