Trait ObjectSource
pub trait ObjectSource:
Send
+ Sync
+ 'static {
// Required methods
fn try_get_stream(
&mut self,
) -> Result<Box<dyn FixedSizedSource>, NetworkError>;
fn get_source_name(&self) -> Result<String, NetworkError>;
fn path(&self) -> Option<PathBuf>;
}Required Methods§
fn try_get_stream(&mut self) -> Result<Box<dyn FixedSizedSource>, NetworkError>
fn get_source_name(&self) -> Result<String, NetworkError>
fn path(&self) -> Option<PathBuf>
Implementations on Foreign Types§
§impl ObjectSource for &'static str
Available on crate feature filesystem only.
impl ObjectSource for &'static str
Available on crate feature
filesystem only.fn try_get_stream(&mut self) -> Result<Box<dyn FixedSizedSource>, NetworkError>
fn get_source_name(&self) -> Result<String, NetworkError>
fn path(&self) -> Option<PathBuf>
§impl ObjectSource for String
Available on crate feature filesystem only.
impl ObjectSource for String
Available on crate feature
filesystem only.fn try_get_stream(&mut self) -> Result<Box<dyn FixedSizedSource>, NetworkError>
fn get_source_name(&self) -> Result<String, NetworkError>
fn path(&self) -> Option<PathBuf>
§impl ObjectSource for PathBuf
Available on crate feature filesystem only.
impl ObjectSource for PathBuf
Available on crate feature
filesystem only.