#[non_exhaustive]pub struct RobotStatus {
pub phase: RobotPhase,
pub output: RobotOutputState,
pub fault: Option<String>,
pub cleanup_error: Option<String>,
pub cleanup_complete: bool,
}Expand description
A read-only snapshot obtained from Robot::status.
Keeps the first background failure and final cleanup failure separately. Each diagnostic is limited to 4096 UTF-8 bytes (with a truncation marker); repeated rejected commands do not append an error history.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.phase: RobotPhaseCurrent admission/lifecycle state. Faults remain latched after shutdown.
output: RobotOutputStateResult of the final stop, not a measurement of motor motion.
fault: Option<String>First background output or task failure, if one occurred.
cleanup_error: Option<String>Final stop failure, if one occurred.
cleanup_complete: boolWhether cleanup has finished, even if its stop attempt failed.
Trait Implementations§
Source§impl Clone for RobotStatus
impl Clone for RobotStatus
Source§impl Debug for RobotStatus
impl Debug for RobotStatus
impl Eq for RobotStatus
Source§impl PartialEq for RobotStatus
impl PartialEq for RobotStatus
impl StructuralPartialEq for RobotStatus
Auto Trait Implementations§
impl Forget for RobotStatus
impl Freeze for RobotStatus
impl Move for RobotStatus
impl RefUnwindSafe for RobotStatus
impl Send for RobotStatus
impl Sync for RobotStatus
impl Unpin for RobotStatus
impl UnsafeUnpin for RobotStatus
impl UnwindSafe for RobotStatus
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