pub struct ConformSession { /* private fields */ }Expand description
A conform session that manages the entire conforming workflow.
Implementations§
Source§impl ConformSession
impl ConformSession
Sourcepub fn new<P: AsRef<Path>>(
name: String,
timeline_path: P,
source_paths: Vec<PathBuf>,
output_path: PathBuf,
config: ConformConfig,
) -> ConformResult<Self>
pub fn new<P: AsRef<Path>>( name: String, timeline_path: P, source_paths: Vec<PathBuf>, output_path: PathBuf, config: ConformConfig, ) -> ConformResult<Self>
Sourcepub fn with_database<P: AsRef<Path>>(
name: String,
timeline_path: P,
source_paths: Vec<PathBuf>,
output_path: PathBuf,
config: ConformConfig,
db_path: P,
) -> ConformResult<Self>
pub fn with_database<P: AsRef<Path>>( name: String, timeline_path: P, source_paths: Vec<PathBuf>, output_path: PathBuf, config: ConformConfig, db_path: P, ) -> ConformResult<Self>
Create a new conform session with a database.
§Errors
Returns an error if the session cannot be created.
Sourcepub fn status(&self) -> SessionStatus
pub fn status(&self) -> SessionStatus
Get the current status.
Sourcepub async fn load_timeline(&mut self) -> ConformResult<()>
pub async fn load_timeline(&mut self) -> ConformResult<()>
Sourcepub async fn scan_sources(&mut self) -> ConformResult<ScanProgress>
pub async fn scan_sources(&mut self) -> ConformResult<ScanProgress>
Sourcepub async fn match_clips(&mut self) -> ConformResult<MatchReport>
pub async fn match_clips(&mut self) -> ConformResult<MatchReport>
Sourcepub fn validate(&self) -> ConformResult<()>
pub fn validate(&self) -> ConformResult<()>
Sourcepub async fn conform(&mut self) -> ConformResult<Timeline>
pub async fn conform(&mut self) -> ConformResult<Timeline>
Sourcepub async fn export(&self, format: OutputFormat) -> ConformResult<()>
pub async fn export(&self, format: OutputFormat) -> ConformResult<()>
Sourcepub fn get_match_report(&self) -> MatchReport
pub fn get_match_report(&self) -> MatchReport
Generate a match report.
Sourcepub async fn run(&mut self) -> ConformResult<MatchReport>
pub async fn run(&mut self) -> ConformResult<MatchReport>
Auto Trait Implementations§
impl !RefUnwindSafe for ConformSession
impl !UnwindSafe for ConformSession
impl Freeze for ConformSession
impl Send for ConformSession
impl Sync for ConformSession
impl Unpin for ConformSession
impl UnsafeUnpin for ConformSession
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
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