[][src]Struct sup::Registry

pub struct Registry {
    pub config: Config,
    pub dir: String,

Substrate registry


config: Config


dir: String

Substrate git directory


impl Registry[src]

pub fn new() -> Result<Registry>[src]

New registry

pub fn source(&self) -> Result<Vec<(String, String)>>[src]

List crates

pub fn update(&self) -> Result<()>[src]

Update registry

pub fn checkout(&self, patt: &str) -> Result<()>[src]

Checkout to target tag

pub fn cur_tag(&self) -> Result<String>[src]

Get current tag

pub fn latest_tag(&self) -> Result<String>[src]

Get the latest tag

pub fn tag(&self) -> Result<Vec<String>>[src]

List substrate tags

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.