pub struct BrandingManager;Expand description
Branding manager
Implementations§
Source§impl BrandingManager
impl BrandingManager
Sourcepub fn load_ascii_logo() -> CliResult<String>
pub fn load_ascii_logo() -> CliResult<String>
Load ASCII logo from file
Sourcepub fn default_ascii_logo() -> String
pub fn default_ascii_logo() -> String
Get default ASCII logo
Display branding on startup
Display branding on version command
Sourcepub fn detect_terminal_capabilities() -> TerminalCapabilities
pub fn detect_terminal_capabilities() -> TerminalCapabilities
Detect terminal capabilities
Sourcepub fn supports_unicode() -> bool
pub fn supports_unicode() -> bool
Check if terminal supports Unicode
Sourcepub fn supports_images() -> bool
pub fn supports_images() -> bool
Check if terminal supports images
Sourcepub fn get_terminal_width() -> u16
pub fn get_terminal_width() -> u16
Get terminal width
Sourcepub fn get_terminal_height() -> u16
pub fn get_terminal_height() -> u16
Get terminal height
Auto Trait Implementations§
impl Freeze for BrandingManager
impl RefUnwindSafe for BrandingManager
impl Send for BrandingManager
impl Sync for BrandingManager
impl Unpin for BrandingManager
impl UnwindSafe for BrandingManager
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more