[−][src]Struct igloo_core::Igloo
Igloo should contain a config and any important environment information. Upon running igloo, an instanc is created, env information is stored, and then things happen.
Implementations
impl Igloo
[src]
pub fn new() -> Igloo
[src]
The new function creates an instance of igloo. The idea is I create an igloo, run start on it so I can collect environment information and process what command the user would like to run, and then I run that command or deal with errors.
This function handles all cli input and stores it. It is parsed for errors in the start function.
pub fn start(&mut self) -> Result<IglooInstType, IglooErrType>
[src]
The start function processes the command you want igloo to run It theoretically should never return an error. It should just exit. If an error was returned, It was my fault and not the users. It is really only here to help me debug.
The Inst Type is only returned for usage outside of this struct.
pub fn run(&self, inst_type: IglooInstType) -> Result<String, IglooErrType>
[src]
The run function processes the request from the user. On success, it will give some string indicating the success of the operation. On failure, it will return some error type.
Auto Trait Implementations
impl !RefUnwindSafe for Igloo
impl Send for Igloo
impl Sync for Igloo
impl Unpin for Igloo
impl !UnwindSafe for Igloo
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,