Struct lazy_async_promise::Status
source · pub struct Status<M> {
pub time: Instant,
pub progress: Progress,
pub message: M,
}
Expand description
A status update struct containing the issue-date, progress and a message You can use any struct that can be transferred via tokio mpsc channels.
Fields§
§time: Instant
Time when this status was created
progress: Progress
Current progress
message: M
Message
Implementations§
source§impl Status<Cow<'static, str>>
impl Status<Cow<'static, str>>
sourcepub fn from_str(progress: Progress, static_message: &'static str) -> Self
pub fn from_str(progress: Progress, static_message: &'static str) -> Self
create a StringStatus
from a &'static str
sourcepub fn from_string(progress: Progress, message: String) -> Self
pub fn from_string(progress: Progress, message: String) -> Self
create a StringStatus
from a String
Trait Implementations§
Auto Trait Implementations§
impl<M> RefUnwindSafe for Status<M>where M: RefUnwindSafe,
impl<M> Send for Status<M>where M: Send,
impl<M> Sync for Status<M>where M: Sync,
impl<M> Unpin for Status<M>where M: Unpin,
impl<M> UnwindSafe for Status<M>where M: UnwindSafe,
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