pub struct SessionHistory { /* private fields */ }Implementations§
Source§impl SessionHistory
impl SessionHistory
pub fn open(config: Config) -> Result<Self>
pub fn health(&self) -> Result<(), Error>
pub fn create_session(&self, input: NewSession) -> Result<Session>
pub fn open_session(&self, metadata: SessionMetadata) -> Result<Session>
pub fn open_session_with_provider_model( &self, metadata: SessionMetadata, provider_model: Option<&str>, ) -> Result<Session>
pub fn legacy_provider_cost_summary_for_archive( &self, archive: &Value, session_state: Option<&Value>, ) -> Result<Option<ProviderCostSummary>>
pub async fn register( &self, input: RegisterSession, ) -> Result<SessionRecord, Error>
pub async fn start( &self, input: StartSession, ) -> Result<Created<SessionRecord>, Error>
pub async fn enqueue_ingress( &self, input: NewIngressSession, ) -> Result<Created<SessionRecord>, Error>
pub async fn list(&self) -> Result<Vec<SessionRecord>, Error>
pub async fn get(&self, id: &str) -> Result<SessionRecord, Error>
pub async fn enqueue( &self, id: &str, input: NewCommand, ) -> Result<Created<SessionCommand>, Error>
pub async fn command_heads(&self) -> Result<Vec<SessionCommand>, Error>
pub async fn claim_command(&self, id: &str) -> Result<SessionCommand, Error>
pub async fn complete_command( &self, id: &str, outcome: CommandOutcome, ) -> Result<SessionCommand, Error>
pub async fn request_stop( &self, id: &str, input: NewStopRequest, ) -> Result<Created<SessionStopRequest>, Error>
pub async fn request_current_work_stop( &self, id: &str, input: NewCurrentWorkStop, ) -> Result<Created<SessionStopRequest>, Error>
pub fn listen_for_stop(&self, id: &str) -> Result<StopListener, Error>
pub async fn stop_heads(&self) -> Result<Vec<SessionStopRequest>, Error>
pub async fn complete_stop( &self, id: &str, outcome: StopOutcome, ) -> Result<SessionStopRequest, Error>
pub async fn stage_object( &self, id: &str, object: NewObject, ) -> Result<String, Error>
pub fn object(&self, id: &str, pending_id: &str) -> Result<StoredObject, Error>
pub async fn checkpoint( &self, id: &str, input: Checkpoint, ) -> Result<SessionRecord, Error>
pub async fn request_ingress( &self, id: &str, input: Checkpoint, ) -> Result<SessionRecord, Error>
pub async fn start_ingress( &self, id: &str, input: StartIngress, ) -> Result<SessionRecord, Error>
pub async fn complete_ingress( &self, id: &str, input: ExpectedVersion, ) -> Result<SessionRecord, Error>
pub async fn fail_ingress( &self, id: &str, input: IngressFailure, ) -> Result<SessionRecord, Error>
pub async fn retry_ingress( &self, id: &str, input: RetryIngress, ) -> Result<SessionRecord, Error>
pub async fn release_interrupted_ingress(&self) -> Result<Vec<String>, Error>
pub async fn complete( &self, id: &str, input: Checkpoint, ) -> Result<SessionRecord, Error>
pub async fn record_completion( &self, input: RecordCompletion, ) -> Result<(), Error>
Trait Implementations§
Source§impl Clone for SessionHistory
impl Clone for SessionHistory
Source§fn clone(&self) -> SessionHistory
fn clone(&self) -> SessionHistory
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 moreAuto Trait Implementations§
impl Freeze for SessionHistory
impl RefUnwindSafe for SessionHistory
impl Send for SessionHistory
impl Sync for SessionHistory
impl Unpin for SessionHistory
impl UnsafeUnpin for SessionHistory
impl UnwindSafe for SessionHistory
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