Struct slog_term::TermDecoratorBuilder[][src]

pub struct TermDecoratorBuilder { /* fields omitted */ }

TermDecorator builder

Implementations

impl TermDecoratorBuilder[src]

pub fn stderr(self) -> Self[src]

Output to stderr

pub fn stdout(self) -> Self[src]

Output to stdout

pub fn force_color(self) -> Self[src]

Force colored output

pub fn force_plain(self) -> Self[src]

Force colored output

pub fn try_build(self) -> Option<TermDecorator>[src]

Try to build TermDecorator

Unlike build this will not fall-back to raw stdout/stderr if it wasn’t able to use terminal and its features directly (eg. if TERM env. was not set).

pub fn build(self) -> TermDecorator[src]

Build TermDecorator

Unlike try_build this it will fall-back to using plain stdout/stderr if it wasn’t able to use terminal directly.

Auto Trait Implementations

impl RefUnwindSafe for TermDecoratorBuilder

impl Send for TermDecoratorBuilder

impl Sync for TermDecoratorBuilder

impl Unpin for TermDecoratorBuilder

impl UnwindSafe for TermDecoratorBuilder

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.