Struct reproto_core::Context
[−]
[src]
pub struct Context { /* fields omitted */ }Context for a single reproto run.
Methods
impl Context[src]
pub fn new(filesystem: Box<Filesystem>) -> Context[src]
Create a new context with the given filesystem.
pub fn with_errors(self, errors: Rc<RefCell<Vec<ContextItem>>>) -> Context[src]
Modify the existing context with a reference to the given errors.
pub fn filesystem(&self, root: Option<&Path>) -> Result<Box<Handle>>[src]
Retrieve the filesystem abstraction.
pub fn report(&self) -> Reporter[src]
Build a handle that can be used in conjunction with Result#map_err.
pub fn errors(&self) -> Result<Ref<Vec<ContextItem>>, BorrowError>[src]
Iterate over all reporter errors.