Skip to main content

LogStream

Struct LogStream 

Source
pub struct LogStream<S: SectionStorage, L: UnifiedLogWrite<S>> { /* private fields */ }
Expand description

A wrapper around the unifiedlogger that implements the Write trait.

Trait Implementations§

Source§

impl<S: SectionStorage, L: UnifiedLogWrite<S>> Debug for LogStream<S, L>

Source§

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

Formats the value using the given formatter. Read more
Source§

impl<S: SectionStorage, L: UnifiedLogWrite<S>> Drop for LogStream<S, L>

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl<E: Encode, S: SectionStorage, L: UnifiedLogWrite<S>> WriteStream<E> for LogStream<S, L>

Source§

fn log(&mut self, obj: &E) -> CuResult<()>

Source§

fn last_log_bytes(&self) -> Option<usize>

Optional byte count of the last successful log call, if the implementation can report it.
Source§

fn flush(&mut self) -> Result<(), CuError>

Auto Trait Implementations§

§

impl<S, L> Freeze for LogStream<S, L>
where S: Freeze,

§

impl<S, L> RefUnwindSafe for LogStream<S, L>
where S: RefUnwindSafe,

§

impl<S, L> Send for LogStream<S, L>

§

impl<S, L> Sync for LogStream<S, L>

§

impl<S, L> Unpin for LogStream<S, L>
where S: Unpin,

§

impl<S, L> UnsafeUnpin for LogStream<S, L>
where S: UnsafeUnpin,

§

impl<S, L> UnwindSafe for LogStream<S, L>
where S: UnwindSafe,

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

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

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

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

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.