pub trait IdempotentCoordinator {
// Required method
fn create_session_with_idempotacy(
&mut self,
request: SessionRequest,
key: &str,
store: &dyn IdempotencyStore,
) -> Result<SessionId, SessionError>;
}Expand description
Extension trait for Coordinator adding idempotent session creation.
Required Methods§
Sourcefn create_session_with_idempotacy(
&mut self,
request: SessionRequest,
key: &str,
store: &dyn IdempotencyStore,
) -> Result<SessionId, SessionError>
fn create_session_with_idempotacy( &mut self, request: SessionRequest, key: &str, store: &dyn IdempotencyStore, ) -> Result<SessionId, SessionError>
Create a session with an idempotency key. If the key was previously used, returns the original session_id.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".