pub struct TurnOrigin {
pub kind: OriginKind,
pub jobs: Vec<String>,
pub retry_seconds: Option<u64>,
}Expand description
Why the server started a turn on its own.
Fields§
§kind: OriginKindWhat the turn is for.
jobs: Vec<String>The background jobs this turn reports. Its end settles them: the
model has seen their results when it completes, the user stopped the
report when it is cancelled, and when it fails they are reported
directly (ServerEvent::BackgroundReported,
sent first), unless retry_seconds is set.
retry_seconds: Option<u64>On a report turn’s turn.failed only: its jobs are still unreported,
and the server starts another report turn for them in about this many
seconds, or as soon as another turn succeeds. Absent everywhere else,
and from servers before 0.3.11, whose failed report turns settled their
jobs.
Trait Implementations§
Source§impl Clone for TurnOrigin
impl Clone for TurnOrigin
Source§impl Debug for TurnOrigin
impl Debug for TurnOrigin
Source§impl<'de> Deserialize<'de> for TurnOrigin
impl<'de> Deserialize<'de> for TurnOrigin
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
impl Eq for TurnOrigin
Source§impl PartialEq for TurnOrigin
impl PartialEq for TurnOrigin
Source§impl Serialize for TurnOrigin
impl Serialize for TurnOrigin
impl StructuralPartialEq for TurnOrigin
Auto Trait Implementations§
impl Freeze for TurnOrigin
impl RefUnwindSafe for TurnOrigin
impl Send for TurnOrigin
impl Sync for TurnOrigin
impl Unpin for TurnOrigin
impl UnsafeUnpin for TurnOrigin
impl UnwindSafe for TurnOrigin
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