pub enum TimerEngineId {
JavaCompat,
ExtendedTimeline,
Native,
}Expand description
Stable identifier of the engine that owns one accepted timer record.
Variants§
JavaCompat
File timer wheel, encoded as F by RocketMQ Java.
ExtendedTimeline
Extended timeline, encoded as R for the existing RocksDB protocol value.
Native
Native tiered time-bucket log, encoded as N.
Implementations§
Source§impl TimerEngineId
impl TimerEngineId
Sourcepub const fn as_str(self) -> &'static str
pub const fn as_str(self) -> &'static str
Returns the persistent wire value used in internal message properties.
Sourcepub fn parse(value: &str) -> Result<Self, StoreContractViolation>
pub fn parse(value: &str) -> Result<Self, StoreContractViolation>
Parses a persistent engine identifier and rejects unknown owners.
§Errors
Returns StoreContractViolation::TimerUnknownEngine when value is not a known engine id.
Trait Implementations§
Source§impl Clone for TimerEngineId
impl Clone for TimerEngineId
impl Copy for TimerEngineId
Source§impl Debug for TimerEngineId
impl Debug for TimerEngineId
Source§impl<'de> Deserialize<'de> for TimerEngineId
impl<'de> Deserialize<'de> for TimerEngineId
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 TimerEngineId
Source§impl Hash for TimerEngineId
impl Hash for TimerEngineId
Source§impl PartialEq for TimerEngineId
impl PartialEq for TimerEngineId
Source§impl Serialize for TimerEngineId
impl Serialize for TimerEngineId
impl StructuralPartialEq for TimerEngineId
Auto Trait Implementations§
impl Forget for TimerEngineId
impl Freeze for TimerEngineId
impl Move for TimerEngineId
impl RefUnwindSafe for TimerEngineId
impl Send for TimerEngineId
impl Sync for TimerEngineId
impl Unpin for TimerEngineId
impl UnsafeUnpin for TimerEngineId
impl UnwindSafe for TimerEngineId
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