[][src]Struct cage::Source

pub struct Source { /* fields omitted */ }

A single source tree.

Implementations

impl Source[src]

pub fn alias(&self) -> &str[src]

A short local name for this source tree, suitable for use as a directory name or command-line argument.

pub fn context(&self) -> &Context[src]

The remote git URL from which we can clone this source tree.

pub fn mounted(&self) -> bool[src]

Should this source tree be mounted into the appropriate containers?

pub fn set_mounted(&mut self, mounted: bool)[src]

Set whether this source tree should be mounted into the appropriate containers?

pub fn path(&self, dirs: &SourcesDirs) -> PathBuf[src]

The full path to where we expect any local copies of this code to live. This will either be the location where we will check out a git repository, or the path to the actual source tree, depending on what type of Context object we're dealing with.

The project argument is mandatory because we can't store a pointer to it without creating a circular reference loop.

pub fn is_available_locally(&self, dirs: &SourcesDirs) -> bool[src]

Has this project been cloned locally?

pub fn clone_source<CR>(
    &mut self,
    runner: &CR,
    dirs: &SourcesDirs
) -> Result<()> where
    CR: CommandRunner
[src]

Clone the source code of this repository using git.

Trait Implementations

impl Debug for Source[src]

Auto Trait Implementations

impl RefUnwindSafe for Source

impl Send for Source

impl Sync for Source

impl Unpin for Source

impl UnwindSafe for Source

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> GetTypeId for T where
    T: Any

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<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

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

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