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

source

pub fn from_str(progress: Progress, static_message: &'static str) -> Self

create a StringStatus from a &'static str

source

pub fn from_string(progress: Progress, message: String) -> Self

create a StringStatus from a String