#[non_exhaustive]pub enum Status {
Continue,
Finished,
}Expand description
What an Operator::on_event call decided.
use astrs_operator_api::Status;
assert_ne!(Status::Continue, Status::Finished);Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Continue
Keep running; more events may still arrive.
Finished
This operator is done — its host may retire it without treating that
as a failure (distinct from an Err return, which the host reports
as NodeFailed, blueprint §9.3).
Implementations§
Source§impl Status
impl Status
Sourcepub const fn is_continue(self) -> bool
pub const fn is_continue(self) -> bool
Whether the operator should keep receiving events.
Sourcepub const fn is_finished(self) -> bool
pub const fn is_finished(self) -> bool
Whether the operator is done.
Trait Implementations§
impl Copy for Status
impl Eq for Status
impl StructuralPartialEq for Status
Auto Trait Implementations§
impl Freeze for Status
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnsafeUnpin for Status
impl UnwindSafe for Status
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