pub struct SourceRequest { /* private fields */ }Expand description
Lazy source request captured during graph construction.
Implementations§
Source§impl SourceRequest
impl SourceRequest
Sourcepub fn new(path: impl Into<String>) -> Self
pub fn new(path: impl Into<String>) -> Self
Creates source request for user-provided media path.
Sourcepub const fn options(&self) -> &BTreeMap<String, SourceOptionValue>
pub const fn options(&self) -> &BTreeMap<String, SourceOptionValue>
Returns source options sorted by option name.
Sourcepub fn try_with_option(
self,
name: impl Into<String>,
value: SourceOptionValue,
) -> Result<Self>
pub fn try_with_option( self, name: impl Into<String>, value: SourceOptionValue, ) -> Result<Self>
Adds validated source option and returns updated request.
Sourcepub fn with_option(
self,
name: impl Into<String>,
value: SourceOptionValue,
) -> Self
pub fn with_option( self, name: impl Into<String>, value: SourceOptionValue, ) -> Self
Adds option for tests and internal construction where name is known valid.
Trait Implementations§
Source§impl Clone for SourceRequest
impl Clone for SourceRequest
Source§fn clone(&self) -> SourceRequest
fn clone(&self) -> SourceRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SourceRequest
impl Debug for SourceRequest
Source§impl PartialEq for SourceRequest
impl PartialEq for SourceRequest
Source§fn eq(&self, other: &SourceRequest) -> bool
fn eq(&self, other: &SourceRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.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