pub enum PullEventKind {
State {
state: PullState,
},
Status {
text: String,
},
Retry {
attempt: u32,
reason: String,
delay_ms: i64,
},
}Expand description
What a history line records. Progress is deliberately absent: it belongs in the rewritten status, not in a file that only grows.
Variants§
State
The job moved to a new state.
Status
The provider said something worth keeping.
Retry
A transfer failed and another attempt is scheduled.
Trait Implementations§
Source§impl Clone for PullEventKind
impl Clone for PullEventKind
Source§impl Debug for PullEventKind
impl Debug for PullEventKind
Source§impl<'de> Deserialize<'de> for PullEventKind
impl<'de> Deserialize<'de> for PullEventKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PullEventKind
impl PartialEq for PullEventKind
Source§impl Serialize for PullEventKind
impl Serialize for PullEventKind
impl StructuralPartialEq for PullEventKind
Auto Trait Implementations§
impl Freeze for PullEventKind
impl RefUnwindSafe for PullEventKind
impl Send for PullEventKind
impl Sync for PullEventKind
impl Unpin for PullEventKind
impl UnsafeUnpin for PullEventKind
impl UnwindSafe for PullEventKind
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