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_object(&self) -> Box<Object>; fn with_name(&self, name: String) -> 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_object(&self) -> Box<Object>
Lightweight cloning of this object.
fn with_name(&self, name: String) -> Box<Object>
Convert the current object with the given name.
Implementors
impl Object for BytesObject
impl Object for PathObject