Enum Target

#[non_exhaustive]
pub enum Target

Log target, either stdout, stderr or a custom pipe.

Variants

Stdout

Logs will be sent to standard output.

Stderr

Logs will be sent to standard error.

Pipe(Box<dyn Write + Send + 'static>)

Logs will be sent to a custom pipe.

Trait Implementations

impl Debug for Target

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Default for Target

fn default() -> Self

Auto Trait Implementations

impl !RefUnwindSafe for Target

impl !Sync for Target

impl !UnwindSafe for Target

impl Freeze for Target

impl Send for Target

impl Unpin for Target

impl UnsafeUnpin for Target

Blanket Implementations

impl<T> Any for Target where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for Target where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for Target where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> From<T> for Target

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for Target where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for Target where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for Target where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>