pub struct NoOrderingStrategy;Expand description
Strategy that disables session-based ordering.
Always returns None, allowing concurrent message processing without
ordering guarantees. Use for stateless operations that don’t require
message ordering.
§Example
use queue_runtime::sessions::NoOrderingStrategy;
let strategy = NoOrderingStrategy;
// All messages can be processed concurrentlyTrait Implementations§
Source§impl SessionKeyGenerator for NoOrderingStrategy
impl SessionKeyGenerator for NoOrderingStrategy
Source§fn generate_key(
&self,
_extractor: &dyn SessionKeyExtractor,
) -> Option<SessionId>
fn generate_key( &self, _extractor: &dyn SessionKeyExtractor, ) -> Option<SessionId>
Generate a session key for the given message. Read more
Auto Trait Implementations§
impl Freeze for NoOrderingStrategy
impl RefUnwindSafe for NoOrderingStrategy
impl Send for NoOrderingStrategy
impl Sync for NoOrderingStrategy
impl Unpin for NoOrderingStrategy
impl UnsafeUnpin for NoOrderingStrategy
impl UnwindSafe for NoOrderingStrategy
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