[][src]Struct cargo_fetcher::Ctx

pub struct Ctx {
    pub client: Client,
    pub backend: Storage,
    pub krates: Vec<Krate>,
    pub root_dir: PathBuf,
}

Fields

client: Clientbackend: Storagekrates: Vec<Krate>root_dir: PathBuf

Implementations

impl Ctx[src]

pub fn new(
    root_dir: Option<PathBuf>,
    backend: Storage,
    krates: Vec<Krate>
) -> Result<Self, Error>
[src]

pub fn prep_sync_dirs(&self) -> Result<(), Error>[src]

Trait Implementations

impl Debug for Ctx[src]

Auto Trait Implementations

impl !RefUnwindSafe for Ctx

impl Send for Ctx

impl Sync for Ctx

impl Unpin for Ctx

impl !UnwindSafe for Ctx

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]