#[repr(i32)]pub enum LogFrequency {
Unspecified = 0,
Frame = 1,
Transaction = 2,
SingleDump = 3,
}
Variants§
Unspecified = 0
Frame = 1
Trace state snapshots when a frame is committed.
Transaction = 2
Trace state snapshots every time a transaction is committed.
SingleDump = 3
Trace single state snapshots when the data source is started.
Implementations§
Source§impl LogFrequency
impl LogFrequency
Source§impl LogFrequency
impl LogFrequency
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 LogFrequency
impl Clone for LogFrequency
Source§fn clone(&self) -> LogFrequency
fn clone(&self) -> LogFrequency
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 LogFrequency
impl Debug for LogFrequency
Source§impl Default for LogFrequency
impl Default for LogFrequency
Source§fn default() -> LogFrequency
fn default() -> LogFrequency
Returns the “default value” for a type. Read more
Source§impl From<LogFrequency> for i32
impl From<LogFrequency> for i32
Source§fn from(value: LogFrequency) -> i32
fn from(value: LogFrequency) -> i32
Converts to this type from the input type.
Source§impl Hash for LogFrequency
impl Hash for LogFrequency
Source§impl Ord for LogFrequency
impl Ord for LogFrequency
Source§fn cmp(&self, other: &LogFrequency) -> Ordering
fn cmp(&self, other: &LogFrequency) -> 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 LogFrequency
impl PartialEq for LogFrequency
Source§impl PartialOrd for LogFrequency
impl PartialOrd for LogFrequency
Source§impl TryFrom<i32> for LogFrequency
impl TryFrom<i32> for LogFrequency
Source§type Error = DecodeError
type Error = DecodeError
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<LogFrequency, DecodeError>
fn try_from(value: i32) -> Result<LogFrequency, DecodeError>
Performs the conversion.
impl Copy for LogFrequency
impl Eq for LogFrequency
impl StructuralPartialEq for LogFrequency
Auto Trait Implementations§
impl Freeze for LogFrequency
impl RefUnwindSafe for LogFrequency
impl Send for LogFrequency
impl Sync for LogFrequency
impl Unpin for LogFrequency
impl UnwindSafe for LogFrequency
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