pub struct Ui {
pub quiet: bool,
}Fields§
§quiet: boolImplementations§
Source§impl Ui
impl Ui
pub fn new(quiet: bool) -> Self
pub fn spinner(&self, msg: &str) -> Option<ProgressBar>
pub fn spinner_done(pb: Option<ProgressBar>, msg: &str)
pub fn spinner_fail(pb: Option<ProgressBar>, msg: &str)
pub fn success(&self, msg: &str)
pub fn info(&self, msg: &str)
pub fn warn(&self, msg: &str)
pub fn error(&self, msg: &str)
pub fn print_auth_status(&self, email: &str, name: &str)
pub fn print_auth_not_signed_in(&self)
pub fn print_server_list(&self, servers: &[StoredServer])
pub fn print_server_status(&self, s: &StoredServer)
pub fn print_usage(&self, info: &CcuInfo)
pub fn print_accelerators(&self, info: &CcuInfo)
pub fn print_system_info(&self, server_name: &str, raw: &str)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Ui
impl RefUnwindSafe for Ui
impl Send for Ui
impl Sync for Ui
impl Unpin for Ui
impl UnsafeUnpin for Ui
impl UnwindSafe for Ui
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