[][src]Struct aurum::Aurum

pub struct Aurum { /* fields omitted */ }

Aurum contains all of the configuration details for the crate, including configuration files, output callbacks, etc.

Methods

impl Aurum[src]

TODO: Provide a way to pipe subprocess std streams

pub fn new(config_file: Option<impl AsRef<Path>>) -> Result<Aurum, Error>[src]

Create a new instance of Aurum. This entails a number of things:

  • Getting or creating a configuration
  • Verifying that configuration
  • Getting package info about packages already in the current configuration

pub fn action(&mut self, action: (ActionType, String))[src]

The main way to interact with Aurum. Add a dependency to the top level of the dependency tree.

pub fn actions(&mut self, actions: Vec<(ActionType, String)>)[src]

Helper function over self.action.

pub fn on_do_actions(
    &mut self,
    handler: fn(_: &Vec<(ActionType, &str)>) -> bool
)
[src]

handler is called by self.commit after dependency resolution occurs. The boolean returned by handler is used to determine whether or not the actions added to this instance of Aurum should be applied.

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

All the things happen here. It might take a little time.

Auto Trait Implementations

impl Unpin for Aurum

impl !Sync for Aurum

impl Send for Aurum

impl !UnwindSafe for Aurum

impl !RefUnwindSafe for Aurum

Blanket Implementations

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

impl<T> From<T> for 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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Erased for T

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

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