Struct SourceRequest
pub struct SourceRequest { /* private fields */ }Expand description
Lazy source request captured during graph construction.
Implementations§
§impl SourceRequest
impl SourceRequest
pub fn new(path: impl Into<String>) -> SourceRequest
pub fn new(path: impl Into<String>) -> SourceRequest
Creates source request for user-provided media path.
pub const fn options(&self) -> &BTreeMap<String, SourceOptionValue>
pub const fn options(&self) -> &BTreeMap<String, SourceOptionValue>
Returns source options sorted by option name.
pub fn try_with_option(
self,
name: impl Into<String>,
value: SourceOptionValue,
) -> Result<SourceRequest, PixelFlowError>
pub fn try_with_option( self, name: impl Into<String>, value: SourceOptionValue, ) -> Result<SourceRequest, PixelFlowError>
Adds validated source option and returns updated request.
pub fn with_option(
self,
name: impl Into<String>,
value: SourceOptionValue,
) -> SourceRequest
pub fn with_option( self, name: impl Into<String>, value: SourceOptionValue, ) -> SourceRequest
Adds option for tests and internal construction where name is known valid.
Trait Implementations§
§impl Clone for SourceRequest
impl Clone for SourceRequest
§fn clone(&self) -> SourceRequest
fn clone(&self) -> SourceRequest
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 more§impl Debug for SourceRequest
impl Debug for SourceRequest
§impl PartialEq for SourceRequest
impl PartialEq for SourceRequest
impl Eq for SourceRequest
impl StructuralPartialEq for SourceRequest
Auto Trait Implementations§
impl Freeze for SourceRequest
impl RefUnwindSafe for SourceRequest
impl Send for SourceRequest
impl Sync for SourceRequest
impl Unpin for SourceRequest
impl UnsafeUnpin for SourceRequest
impl UnwindSafe for SourceRequest
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