Enum cwe_checker_lib::utils::log::LogThreadMsg
source · pub enum LogThreadMsg {
Log(LogMessage),
Cwe(CweWarning),
Terminate,
}
Expand description
The message types a logging thread can receive.
See the LogThread
type for more information.
Variants§
Log(LogMessage)
A normal log message.
Cwe(CweWarning)
A CWE warning
Terminate
If the log collector thread receives this signal, it should stop receiving new messages and instead terminate and return the collected messages prior to receiving the termination signal.
Trait Implementations§
source§impl Clone for LogThreadMsg
impl Clone for LogThreadMsg
source§fn clone(&self) -> LogThreadMsg
fn clone(&self) -> LogThreadMsg
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for LogThreadMsg
impl Debug for LogThreadMsg
source§impl<'de> Deserialize<'de> for LogThreadMsg
impl<'de> Deserialize<'de> for LogThreadMsg
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
source§impl From<CweWarning> for LogThreadMsg
impl From<CweWarning> for LogThreadMsg
source§fn from(warning: CweWarning) -> Self
fn from(warning: CweWarning) -> Self
Converts to this type from the input type.
source§impl From<LogMessage> for LogThreadMsg
impl From<LogMessage> for LogThreadMsg
source§fn from(msg: LogMessage) -> Self
fn from(msg: LogMessage) -> Self
Converts to this type from the input type.
source§impl Hash for LogThreadMsg
impl Hash for LogThreadMsg
source§impl Ord for LogThreadMsg
impl Ord for LogThreadMsg
source§fn cmp(&self, other: &LogThreadMsg) -> Ordering
fn cmp(&self, other: &LogThreadMsg) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for LogThreadMsg
impl PartialEq for LogThreadMsg
source§fn eq(&self, other: &LogThreadMsg) -> bool
fn eq(&self, other: &LogThreadMsg) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for LogThreadMsg
impl PartialOrd for LogThreadMsg
source§fn partial_cmp(&self, other: &LogThreadMsg) -> Option<Ordering>
fn partial_cmp(&self, other: &LogThreadMsg) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for LogThreadMsg
impl Serialize for LogThreadMsg
impl Eq for LogThreadMsg
impl StructuralEq for LogThreadMsg
impl StructuralPartialEq for LogThreadMsg
Auto Trait Implementations§
impl RefUnwindSafe for LogThreadMsg
impl Send for LogThreadMsg
impl Sync for LogThreadMsg
impl Unpin for LogThreadMsg
impl UnwindSafe for LogThreadMsg
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.