Struct slog_term::TermDecoratorBuilder [−][src]
TermDecorator builder
Implementations
impl TermDecoratorBuilder[src]
pub fn stderr(mut self: Self) -> Self[src]
Output to stderr
pub fn stdout(mut self: Self) -> Self[src]
Output to stdout
pub fn force_color(mut self: Self) -> Self[src]
Force colored output
pub fn force_plain(mut self: Self) -> Self[src]
Force plain 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[src]
impl Send for TermDecoratorBuilder[src]
impl Sync for TermDecoratorBuilder[src]
impl Unpin for TermDecoratorBuilder[src]
impl UnwindSafe for TermDecoratorBuilder[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized, [src]
T: Send + Sync + UnwindSafe + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,