pub enum TaskEvent {
Started {
task: TaskInfo,
},
Updated {
task: TaskInfo,
},
Progress {
task_id: String,
skipped_bytes: u64,
appended: String,
from_byte: u64,
next_byte: u64,
},
Finished {
task: TaskInfo,
},
}Expand description
What a session’s tasks report as they run
(SessionState::subscribe_tasks in session-state).
Variants§
Started
Updated
Progress
What a streamed task printed since the last one: bytes
from_byte..next_byte of everything it ever printed, after
skipped_bytes that did not fit in one frame.
Finished
Trait Implementations§
impl StructuralPartialEq for TaskEvent
Auto Trait Implementations§
impl Forget for TaskEvent
impl Freeze for TaskEventwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
PhantomData<String>: Freeze,
impl Move for TaskEvent
impl RefUnwindSafe for TaskEvent
impl Send for TaskEvent
impl Sync for TaskEvent
impl Unpin for TaskEvent
impl UnsafeUnpin for TaskEventwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for TaskEvent
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