Trait reproto_core::Object
[−]
[src]
pub trait Object: Send + Display + Debug { fn path(&self) -> Option<&Path>; fn read<'a>(&'a self) -> Result<Box<Read + 'a>>; fn clone(&self) -> Box<Object>; }
Required Methods
fn path(&self) -> Option<&Path>
Get a path to the object, if one exists.
fn read<'a>(&'a self) -> Result<Box<Read + 'a>>
Open a reader to the object.
fn clone(&self) -> Box<Object>
Implementors
impl Object for BytesObject
impl Object for PathObject