[][src]Struct logger_rs::logger::Logger

pub struct Logger<T> { /* fields omitted */ }

Main Logger. Each logger has its own bridge where the messages are transferred.

Methods

impl<T> Logger<T>[src]

pub fn style(self, style: Box<dyn Style>) -> Self[src]

pub fn bridge<U>(self, bridge: Box<dyn Bridge<U>>) -> Logger<U>[src]

pub fn fail<M: AsRef<str>>(&self, msg: M) -> T[src]

pub fn warn<M: AsRef<str>>(&self, msg: M) -> T[src]

pub fn debug<M: AsRef<str>>(&self, msg: M) -> T[src]

pub fn success<M: AsRef<str>>(&self, msg: M) -> T[src]

Trait Implementations

impl Default for Logger<()>[src]

Auto Trait Implementations

impl<T> !Send for Logger<T>

impl<T> !Sync for Logger<T>

impl<T> Unpin for Logger<T>

impl<T> !RefUnwindSafe for Logger<T>

impl<T> !UnwindSafe for Logger<T>

Blanket Implementations

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.

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

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

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