pub struct Recorder {
pub space_estimated: bool,
pub record: Recording,
/* private fields */
}Fields§
§space_estimated: bool§record: RecordingImplementations§
Source§impl Recorder
impl Recorder
pub fn start( config: &Config, store: &Store, station: &Station, url: &str, dir: &Path, duration: Option<Duration>, stop: &Arc<AtomicBool>, ) -> Result<Self>
pub fn start_with_info( config: &Config, store: &Store, station: &Station, url: &str, dir: &Path, duration: Option<Duration>, info: Value, ) -> Result<Self>
pub fn start_with_metadata( config: &Config, store: &Store, metadata: RecordingMetadata<'_>, url: &str, dir: &Path, duration: Option<Duration>, info: Value, ) -> Result<Self>
pub fn poll(&mut self) -> Result<bool>
pub fn elapsed_ms(&self) -> u64
pub fn finish( self, config: &Config, store: &Store, reason: Option<&str>, ) -> Result<Recording>
pub fn finish_cancellable( self, config: &Config, store: &Store, reason: Option<&str>, stop: &Arc<AtomicBool>, ) -> Result<Recording>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Recorder
impl !UnwindSafe for Recorder
impl Forget for Recorder
impl Freeze for Recorderwhere
I32NotAllOnes: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const ArcInner<Atomic<u64>> is !null: Freeze,
PhantomData<ArcInner<Atomic<u64>>>: Freeze,
PhantomData<JoinHandle<()>>: Freeze,
*const ArcInner<Mutex<String>> is !null: Freeze,
PhantomData<ArcInner<Mutex<String>>>: Freeze,
impl Move for Recorder
impl Send for Recorder
impl Sync for Recorder
impl Unpin for Recorder
impl UnsafeUnpin for Recorderwhere
I32NotAllOnes: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<Atomic<u64>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Atomic<u64>>>: UnsafeUnpin,
PhantomData<JoinHandle<()>>: UnsafeUnpin,
*const ArcInner<Mutex<String>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<String>>>: UnsafeUnpin,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more