Skip to main content

Context

Trait Context 

Source
pub trait Context {
    // Required methods
    fn profile(&self) -> Result<Profile, Error>;
    fn home(&self) -> Result<Home, Error>;
}
Expand description

Context passed to all commands.

Required Methods§

Source

fn profile(&self) -> Result<Profile, Error>

Return the currently active profile, or an error if no profile is active.

Source

fn home(&self) -> Result<Home, Error>

Return the Radicle home.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Context for Profile

Implementors§