pub enum RecordKind {
Open,
Read,
Write,
Error,
Shutdown,
Drop,
}Expand description
This enumeration represents log record kind. It is contained inside Record and helps to determine
how to work with log record message content which is different for each log record kind.
Variants§
Open
A manual marker emitted by the user via
LoggedStream::log_open — for example to record the start
of a connection. Never produced automatically.
Read
Bytes were read from the wrapped stream.
Write
Bytes were written to the wrapped stream.
Error
A real IO error occurred while reading or writing (transient WouldBlock / WriteZero
conditions are skipped).
Shutdown
An asynchronous stream was shut down via poll_shutdown.
Drop
The stream wrapper was dropped.
Trait Implementations§
Source§impl Clone for RecordKind
impl Clone for RecordKind
Source§fn clone(&self) -> RecordKind
fn clone(&self) -> RecordKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RecordKind
Source§impl Debug for RecordKind
impl Debug for RecordKind
Source§impl Display for RecordKind
impl Display for RecordKind
impl Eq for RecordKind
Source§impl From<RecordKind> for char
impl From<RecordKind> for char
Source§fn from(kind: RecordKind) -> Self
fn from(kind: RecordKind) -> Self
Converts to this type from the input type.
Source§impl Hash for RecordKind
impl Hash for RecordKind
Source§impl PartialEq for RecordKind
impl PartialEq for RecordKind
impl StructuralPartialEq for RecordKind
Auto Trait Implementations§
impl Freeze for RecordKind
impl RefUnwindSafe for RecordKind
impl Send for RecordKind
impl Sync for RecordKind
impl Unpin for RecordKind
impl UnsafeUnpin for RecordKind
impl UnwindSafe for RecordKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more