pub struct OfflineProxySession { /* private fields */ }Expand description
Manager for offline proxy editing sessions.
Implementations§
Source§impl OfflineProxySession
impl OfflineProxySession
Sourcepub fn with_strategy(self, strategy: SubstitutionStrategy) -> Self
pub fn with_strategy(self, strategy: SubstitutionStrategy) -> Self
Create a session with a specific substitution strategy.
Sourcepub fn register(&mut self, clip: OfflineProxyClip)
pub fn register(&mut self, clip: OfflineProxyClip)
Register a proxy clip.
Sourcepub fn get(&self, id: &str) -> Option<&OfflineProxyClip>
pub fn get(&self, id: &str) -> Option<&OfflineProxyClip>
Get a clip by id.
Sourcepub fn get_mut(&mut self, id: &str) -> Option<&mut OfflineProxyClip>
pub fn get_mut(&mut self, id: &str) -> Option<&mut OfflineProxyClip>
Get a mutable reference to a clip by id.
Sourcepub fn clip_count(&self) -> usize
pub fn clip_count(&self) -> usize
Returns the total number of clips.
Sourcepub fn count_by_status(&self, status: &OfflineStatus) -> usize
pub fn count_by_status(&self, status: &OfflineStatus) -> usize
Count clips by status.
Sourcepub fn reconnect(&mut self, id: &str, original_path: impl Into<PathBuf>) -> bool
pub fn reconnect(&mut self, id: &str, original_path: impl Into<PathBuf>) -> bool
Reconnect a clip to its original media.
Returns true if the clip was found and reconnected.
Sourcepub fn substitute(&mut self, id: &str) -> bool
pub fn substitute(&mut self, id: &str) -> bool
Mark a clip as substituted.
Sourcepub fn substitution_strategy(&self) -> SubstitutionStrategy
pub fn substitution_strategy(&self) -> SubstitutionStrategy
Get the current substitution strategy.
Sourcepub fn clips_needing_reconnection(&self) -> Vec<&OfflineProxyClip>
pub fn clips_needing_reconnection(&self) -> Vec<&OfflineProxyClip>
List all clips that need reconnection.
Sourcepub fn reconnected_clips(&self) -> Vec<&OfflineProxyClip>
pub fn reconnected_clips(&self) -> Vec<&OfflineProxyClip>
List all reconnected clips.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OfflineProxySession
impl RefUnwindSafe for OfflineProxySession
impl Send for OfflineProxySession
impl Sync for OfflineProxySession
impl Unpin for OfflineProxySession
impl UnsafeUnpin for OfflineProxySession
impl UnwindSafe for OfflineProxySession
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