#[repr(i32)]pub enum ReportFlushState {
Unspecified = 0,
PendingLocal = 1,
QueuedLocal = 2,
Flushed = 3,
}Expand description
Report delivery state emitted by the Heddle actor registry.
Variants§
Implementations§
Source§impl ReportFlushState
impl ReportFlushState
Sourcepub const fn is_valid(value: i32) -> bool
pub const fn is_valid(value: i32) -> bool
Returns true if value is a variant of ReportFlushState.
Sourcepub fn from_i32(value: i32) -> Option<ReportFlushState>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<ReportFlushState>
Use the TryFrom<i32> implementation instead
Converts an i32 to a ReportFlushState, or None if value is not a valid variant.
Source§impl ReportFlushState
impl ReportFlushState
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 ReportFlushState
impl Clone for ReportFlushState
Source§fn clone(&self) -> ReportFlushState
fn clone(&self) -> ReportFlushState
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 ReportFlushState
Source§impl Debug for ReportFlushState
impl Debug for ReportFlushState
Source§impl Default for ReportFlushState
impl Default for ReportFlushState
Source§fn default() -> ReportFlushState
fn default() -> ReportFlushState
Returns the “default value” for a type. Read more
impl Eq for ReportFlushState
Source§impl From<ReportFlushState> for i32
impl From<ReportFlushState> for i32
Source§fn from(value: ReportFlushState) -> i32
fn from(value: ReportFlushState) -> i32
Converts to this type from the input type.
Source§impl Hash for ReportFlushState
impl Hash for ReportFlushState
Source§impl Ord for ReportFlushState
impl Ord for ReportFlushState
Source§fn cmp(&self, other: &ReportFlushState) -> Ordering
fn cmp(&self, other: &ReportFlushState) -> Ordering
1.21.0 (const: unstable) · 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 ReportFlushState
impl PartialEq for ReportFlushState
Source§impl PartialOrd for ReportFlushState
impl PartialOrd for ReportFlushState
impl StructuralPartialEq for ReportFlushState
Source§impl TryFrom<i32> for ReportFlushState
impl TryFrom<i32> for ReportFlushState
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<ReportFlushState, UnknownEnumValue>
fn try_from(value: i32) -> Result<ReportFlushState, UnknownEnumValue>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ReportFlushState
impl RefUnwindSafe for ReportFlushState
impl Send for ReportFlushState
impl Sync for ReportFlushState
impl Unpin for ReportFlushState
impl UnsafeUnpin for ReportFlushState
impl UnwindSafe for ReportFlushState
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