pub struct OfflineProxyClip {
pub id: String,
pub proxy_path: PathBuf,
pub original_path: Option<PathBuf>,
pub status: OfflineStatus,
pub resolution_fraction: f32,
}Expand description
A proxy clip record used during offline editing.
Fields§
§id: StringUnique identifier for this clip.
proxy_path: PathBufPath to the proxy file.
original_path: Option<PathBuf>Path to the original high-resolution file (may be absent during offline).
status: OfflineStatusCurrent status of the proxy.
resolution_fraction: f32Proxy resolution as a fraction of original (e.g., 0.25 = quarter res).
Implementations§
Source§impl OfflineProxyClip
impl OfflineProxyClip
Sourcepub fn new(id: impl Into<String>, proxy_path: impl Into<PathBuf>) -> Self
pub fn new(id: impl Into<String>, proxy_path: impl Into<PathBuf>) -> Self
Create a new offline proxy clip.
Sourcepub fn with_original(self, original: impl Into<PathBuf>) -> Self
pub fn with_original(self, original: impl Into<PathBuf>) -> Self
Set the original media path.
Sourcepub fn with_resolution_fraction(self, fraction: f32) -> Self
pub fn with_resolution_fraction(self, fraction: f32) -> Self
Set the resolution fraction.
Sourcepub fn proxy_exists(&self) -> bool
pub fn proxy_exists(&self) -> bool
Check whether the proxy file is present on disk.
Sourcepub fn is_reconnected(&self) -> bool
pub fn is_reconnected(&self) -> bool
Check whether this clip has been reconnected to its original.
Trait Implementations§
Source§impl Clone for OfflineProxyClip
impl Clone for OfflineProxyClip
Source§fn clone(&self) -> OfflineProxyClip
fn clone(&self) -> OfflineProxyClip
Returns a duplicate of the value. Read more
1.0.0 · 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 Freeze for OfflineProxyClip
impl RefUnwindSafe for OfflineProxyClip
impl Send for OfflineProxyClip
impl Sync for OfflineProxyClip
impl Unpin for OfflineProxyClip
impl UnsafeUnpin for OfflineProxyClip
impl UnwindSafe for OfflineProxyClip
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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