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 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 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 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 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 recording a fresh processing budget.
Sourcepub async fn confirm_speakers(
&self,
confirmation: RecordingConfirmation,
) -> Result<CorrectionPacket, Error>
pub async fn confirm_speakers( &self, confirmation: RecordingConfirmation, ) -> Result<CorrectionPacket, Error>
Applies the complete human-confirmed speaker mapping and immediately attempts the now-authorized Session History handoff.
Sourcepub async fn retry_ingress(
&self,
input: RetryIngress,
) -> Result<SessionRecord, Error>
pub async fn retry_ingress( &self, input: RetryIngress, ) -> Result<SessionRecord, Error>
Retries one Session History ingress record.
Sourcepub async fn synchronize_completed_transcripts(&self) -> Result<(), Error>
pub async fn synchronize_completed_transcripts(&self) -> Result<(), Error>
Submits every missing 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