[−][src]Struct aurum::Aurum
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]
&mut self,
handler: fn(_: &Vec<(ActionType, &str)>) -> bool
)
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]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Erased for T
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,