pub struct OperationStatus {
pub state: String,
pub suspended: bool,
}Expand description
What an operation is doing, as Client::operation_status reports it.
The pair rather than either alone: suspension is not a state, so state
says running for an operation that is paused and suspended is the only
thing that says otherwise. Reading them together also costs one request
instead of two, which a poll loop notices.
Fields§
§state: Stringrunning, completed, failed, aborted, pending, …
suspended: boolWhether it is paused. Never visible in state.
Trait Implementations§
Source§impl Clone for OperationStatus
impl Clone for OperationStatus
Source§fn clone(&self) -> OperationStatus
fn clone(&self) -> OperationStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OperationStatus
impl Debug for OperationStatus
impl Eq for OperationStatus
Source§impl PartialEq for OperationStatus
impl PartialEq for OperationStatus
impl StructuralPartialEq for OperationStatus
Auto Trait Implementations§
impl Freeze for OperationStatus
impl RefUnwindSafe for OperationStatus
impl Send for OperationStatus
impl Sync for OperationStatus
impl Unpin for OperationStatus
impl UnsafeUnpin for OperationStatus
impl UnwindSafe for OperationStatus
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