pub struct TranscriptionService(pub Arc<dyn Transcriber>);Tuple Fields§
§0: Arc<dyn Transcriber>Implementations§
Source§impl TranscriptionService
impl TranscriptionService
pub fn new(transcriber: Arc<dyn Transcriber>) -> Self
pub async fn transcribe( &self, request: TranscriptionRequest, ) -> Result<TranscriptionResult, TranscriptionError>
Trait Implementations§
Source§impl Clone for TranscriptionService
impl Clone for TranscriptionService
Source§fn clone(&self) -> TranscriptionService
fn clone(&self) -> TranscriptionService
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 TranscriptionService
impl !UnwindSafe for TranscriptionService
impl Freeze for TranscriptionService
impl Send for TranscriptionService
impl Sync for TranscriptionService
impl Unpin for TranscriptionService
impl UnsafeUnpin for TranscriptionService
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