pub struct OperationSource { /* private fields */ }Implementations§
Source§impl OperationSource
impl OperationSource
Sourcepub fn new(
served_by: &'static str,
next: impl FnMut(&mut RecordingReader, bool) -> Result<OperationStep, TranscriptionError> + Send + 'static,
) -> Self
pub fn new( served_by: &'static str, next: impl FnMut(&mut RecordingReader, bool) -> Result<OperationStep, TranscriptionError> + Send + 'static, ) -> Self
served_by names the engine that runs the operation.
next(reader, previews) must fill reader through each read_to,
and fully before Complete.
Auto Trait Implementations§
impl !RefUnwindSafe for OperationSource
impl !Sync for OperationSource
impl !UnwindSafe for OperationSource
impl Freeze for OperationSource
impl Send for OperationSource
impl Unpin for OperationSource
impl UnsafeUnpin for OperationSource
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