Enum google_api_proto::google::cloud::video::livestream::v1::log_config::LogSeverity
source · #[repr(i32)]pub enum LogSeverity {
Unspecified = 0,
Off = 1,
Debug = 100,
Info = 200,
Warning = 400,
Error = 500,
}
Expand description
The severity level of platform logging for this channel. Logs with a severity level higher than or equal to the chosen severity level will be logged and can be viewed through Cloud Logging. The severity level of a log is ranked as followed from low to high: DEBUG < INFO < NOTICE < WARNING < ERROR < CRITICAL < ALERT < EMERGENCY. See LogSeverity for more information.
Variants§
Unspecified = 0
Log severity is not specified. This is the same as log severity is OFF.
Off = 1
Log is turned off.
Debug = 100
Log with severity higher than or equal to DEBUG are logged.
Info = 200
Logs with severity higher than or equal to INFO are logged.
Warning = 400
Logs with severity higher than or equal to WARNING are logged.
Error = 500
Logs with severity higher than or equal to ERROR are logged.
Implementations§
source§impl LogSeverity
impl LogSeverity
source§impl LogSeverity
impl LogSeverity
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for LogSeverity
impl Clone for LogSeverity
source§fn clone(&self) -> LogSeverity
fn clone(&self) -> LogSeverity
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LogSeverity
impl Debug for LogSeverity
source§impl Default for LogSeverity
impl Default for LogSeverity
source§fn default() -> LogSeverity
fn default() -> LogSeverity
source§impl From<LogSeverity> for i32
impl From<LogSeverity> for i32
source§fn from(value: LogSeverity) -> i32
fn from(value: LogSeverity) -> i32
source§impl Hash for LogSeverity
impl Hash for LogSeverity
source§impl Ord for LogSeverity
impl Ord for LogSeverity
source§fn cmp(&self, other: &LogSeverity) -> Ordering
fn cmp(&self, other: &LogSeverity) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for LogSeverity
impl PartialEq for LogSeverity
source§fn eq(&self, other: &LogSeverity) -> bool
fn eq(&self, other: &LogSeverity) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for LogSeverity
impl PartialOrd for LogSeverity
source§fn partial_cmp(&self, other: &LogSeverity) -> Option<Ordering>
fn partial_cmp(&self, other: &LogSeverity) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for LogSeverity
impl TryFrom<i32> for LogSeverity
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<LogSeverity, UnknownEnumValue>
fn try_from(value: i32) -> Result<LogSeverity, UnknownEnumValue>
impl Copy for LogSeverity
impl Eq for LogSeverity
impl StructuralPartialEq for LogSeverity
Auto Trait Implementations§
impl Freeze for LogSeverity
impl RefUnwindSafe for LogSeverity
impl Send for LogSeverity
impl Sync for LogSeverity
impl Unpin for LogSeverity
impl UnwindSafe for LogSeverity
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<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
key
and return true
if they are equal.§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
§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
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request