pub enum AutoApproachResult {
Success,
Timeout,
Failed(String),
AlreadyRunning,
Cancelled,
}Expand description
Result of an auto-approach operation
Variants§
Success
Auto-approach completed successfully
Timeout
Auto-approach timed out before completion
Failed(String)
Auto-approach failed (e.g., hardware error, abnormal termination)
AlreadyRunning
Auto-approach was already running when attempted to start
Cancelled
Auto-approach was cancelled/stopped externally
Implementations§
Source§impl AutoApproachResult
impl AutoApproachResult
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
Check if the result represents a successful operation
Sourcepub fn is_failure(&self) -> bool
pub fn is_failure(&self) -> bool
Check if the result represents a failure
Sourcepub fn error_message(&self) -> Option<&str>
pub fn error_message(&self) -> Option<&str>
Get error description if this is a failure
Trait Implementations§
Source§impl Clone for AutoApproachResult
impl Clone for AutoApproachResult
Source§fn clone(&self) -> AutoApproachResult
fn clone(&self) -> AutoApproachResult
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 moreSource§impl Debug for AutoApproachResult
impl Debug for AutoApproachResult
Source§impl PartialEq for AutoApproachResult
impl PartialEq for AutoApproachResult
impl Eq for AutoApproachResult
impl StructuralPartialEq for AutoApproachResult
Auto Trait Implementations§
impl Freeze for AutoApproachResult
impl RefUnwindSafe for AutoApproachResult
impl Send for AutoApproachResult
impl Sync for AutoApproachResult
impl Unpin for AutoApproachResult
impl UnwindSafe for AutoApproachResult
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