pub struct Coordinator { /* private fields */ }Expand description
Cloneable typed coordinator over AudioIngress and Session History.
Implementations§
Source§impl Coordinator
impl Coordinator
Sourcepub fn new(
audio: AudioIngress,
history: SessionHistory,
config: Config,
) -> Result<Self, Error>
pub fn new( audio: AudioIngress, history: SessionHistory, config: Config, ) -> Result<Self, Error>
Constructs a coordinator over already-opened capability handles.
Sourcepub fn health(&self) -> Result<(), Error>
pub fn health(&self) -> Result<(), Error>
Checks that both underlying capabilities can read their current state.
Sourcepub async fn submit(
&self,
input: RecordingInput,
) -> Result<RecordingSubmission, Error>
pub async fn submit( &self, input: RecordingInput, ) -> Result<RecordingSubmission, Error>
Durably submits one admitted recording and returns its combined state.
Sourcepub async fn recordings(&self) -> Result<Vec<Recording>, Error>
pub async fn recordings(&self) -> Result<Vec<Recording>, Error>
Returns configured-user recordings with their correlated ingress state.
Sourcepub async fn recording_by_sha256(
&self,
sha256: &str,
) -> Result<Recording, Error>
pub async fn recording_by_sha256( &self, sha256: &str, ) -> Result<Recording, Error>
Finds a configured-user recording by its SHA-256 digest.
Sourcepub async fn recording_history(
&self,
recording_id: Uuid,
) -> Result<RecordingHistory, Error>
pub async fn recording_history( &self, recording_id: Uuid, ) -> Result<RecordingHistory, Error>
Returns one configured-user recording and its correlated pieces.
Sourcepub fn retry_recording(&self, recording_id: Uuid) -> Result<(), Error>
pub fn retry_recording(&self, recording_id: Uuid) -> Result<(), Error>
Gives one failed configured-user recording a fresh processing budget.
Sourcepub async fn retry_ingress(
&self,
input: RetryIngress,
) -> Result<SessionRecord, Error>
pub async fn retry_ingress( &self, input: RetryIngress, ) -> Result<SessionRecord, Error>
Retries memory ingress only for a currently correlated audio piece.
Sourcepub async fn synchronize_completed_transcripts(&self) -> Result<(), Error>
pub async fn synchronize_completed_transcripts(&self) -> Result<(), Error>
Submits every missing configured-user transcript piece to Session History.
Trait Implementations§
Source§impl Clone for Coordinator
impl Clone for Coordinator
Source§fn clone(&self) -> Coordinator
fn clone(&self) -> Coordinator
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 !RefUnwindSafe for Coordinator
impl !UnwindSafe for Coordinator
impl Freeze for Coordinator
impl Send for Coordinator
impl Sync for Coordinator
impl Unpin for Coordinator
impl UnsafeUnpin for Coordinator
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