Type Definition lazy_async_promise::StringStatus
source · pub type StringStatus = Status<Cow<'static, str>>;
Expand description
This Status
typedef allows to use both: &'static str
and String
in a 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