pub enum LogStreamKind {
Stdin,
Stdout,
Stderr,
}Expand description
Which standard stream a LogLine belongs to.
Serializes/deserializes as the lowercase strings stdin / stdout /
stderr to match the existing zlayer-api wire output.
Variants§
Implementations§
Source§impl LogStreamKind
impl LogStreamKind
Sourcepub fn as_str(&self) -> &'static str
pub fn as_str(&self) -> &'static str
The lowercase wire token for this stream ("stdin" / "stdout" /
"stderr"), matching the serde representation.
Sourcepub fn docker_stream_id(&self) -> u8
pub fn docker_stream_id(&self) -> u8
The Docker multiplexed-stream id for this stream: stdin=0, stdout=1,
stderr=2. This is byte 0 of a Docker stdio frame header (see
encode_docker_frame).
Trait Implementations§
Source§impl Clone for LogStreamKind
impl Clone for LogStreamKind
Source§fn clone(&self) -> LogStreamKind
fn clone(&self) -> LogStreamKind
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 LogStreamKind
Source§impl Debug for LogStreamKind
impl Debug for LogStreamKind
Source§impl<'de> Deserialize<'de> for LogStreamKind
impl<'de> Deserialize<'de> for LogStreamKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for LogStreamKind
Source§impl PartialEq for LogStreamKind
impl PartialEq for LogStreamKind
Source§fn eq(&self, other: &LogStreamKind) -> bool
fn eq(&self, other: &LogStreamKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LogStreamKind
impl Serialize for LogStreamKind
impl StructuralPartialEq for LogStreamKind
Auto Trait Implementations§
impl Freeze for LogStreamKind
impl RefUnwindSafe for LogStreamKind
impl Send for LogStreamKind
impl Sync for LogStreamKind
impl Unpin for LogStreamKind
impl UnsafeUnpin for LogStreamKind
impl UnwindSafe for LogStreamKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.