pub type StringStatus = Status<Cow<'static, str>>;Expand description
This Status typedef allows to use both: &'static str and String in a message
Aliased Type§
pub struct StringStatus {
pub time: Instant,
pub progress: Progress,
pub message: Cow<'static, str>,
}Fields§
§time: InstantTime when this status was created
progress: ProgressCurrent progress
message: Cow<'static, str>Message
Implementations§
Source§impl StringStatus
impl StringStatus
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