pub enum ProxyStatus {
Queued,
Processing(u8),
Done,
Failed(String),
}Expand description
Lifecycle state of a single proxy generation task.
Variants§
Queued
Waiting to be picked up by a worker.
Processing(u8)
Currently being encoded; inner value is percentage complete (0–100).
Done
Successfully finished.
Failed(String)
Failed with an error message.
Implementations§
Source§impl ProxyStatus
impl ProxyStatus
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Returns true when the task has reached a terminal state (done or failed).
Sourcepub fn progress_pct(&self) -> u8
pub fn progress_pct(&self) -> u8
Returns the progress percentage.
Queued→ 0Processing(p)→ pDone→ 100Failed→ 0
Trait Implementations§
Source§impl Clone for ProxyStatus
impl Clone for ProxyStatus
Source§fn clone(&self) -> ProxyStatus
fn clone(&self) -> ProxyStatus
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 ProxyStatus
impl Debug for ProxyStatus
Source§impl PartialEq for ProxyStatus
impl PartialEq for ProxyStatus
impl StructuralPartialEq for ProxyStatus
Auto Trait Implementations§
impl Freeze for ProxyStatus
impl RefUnwindSafe for ProxyStatus
impl Send for ProxyStatus
impl Sync for ProxyStatus
impl Unpin for ProxyStatus
impl UnsafeUnpin for ProxyStatus
impl UnwindSafe for ProxyStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more