pub struct ProxyLinkManager { /* private fields */ }Expand description
Proxy link manager.
Implementations§
Source§impl ProxyLinkManager
impl ProxyLinkManager
Sourcepub async fn new(db_path: impl AsRef<Path>) -> Result<Self>
pub async fn new(db_path: impl AsRef<Path>) -> Result<Self>
Create a new proxy link manager with the specified database.
§Errors
Returns an error if the database cannot be opened.
Sourcepub async fn link_proxy(
&mut self,
proxy_path: impl AsRef<Path>,
original_path: impl AsRef<Path>,
) -> Result<()>
pub async fn link_proxy( &mut self, proxy_path: impl AsRef<Path>, original_path: impl AsRef<Path>, ) -> Result<()>
Sourcepub async fn link_proxy_with_metadata(
&mut self,
proxy_path: impl AsRef<Path>,
original_path: impl AsRef<Path>,
scale_factor: f32,
codec: impl Into<String>,
duration: f64,
timecode: Option<String>,
metadata: HashMap<String, String>,
) -> Result<()>
pub async fn link_proxy_with_metadata( &mut self, proxy_path: impl AsRef<Path>, original_path: impl AsRef<Path>, scale_factor: f32, codec: impl Into<String>, duration: f64, timecode: Option<String>, metadata: HashMap<String, String>, ) -> Result<()>
Link a proxy with full metadata.
Sourcepub fn get_proxy(&self, original_path: impl AsRef<Path>) -> Result<&Path>
pub fn get_proxy(&self, original_path: impl AsRef<Path>) -> Result<&Path>
Get the proxy path for an original file.
§Errors
Returns an error if no link exists for the original.
Auto Trait Implementations§
impl Freeze for ProxyLinkManager
impl RefUnwindSafe for ProxyLinkManager
impl Send for ProxyLinkManager
impl Sync for ProxyLinkManager
impl Unpin for ProxyLinkManager
impl UnsafeUnpin for ProxyLinkManager
impl UnwindSafe for ProxyLinkManager
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