Enum byggis::ByggisErrors
source · [−]pub enum ByggisErrors {
NetworkError,
DirectoryNotCreated,
ByggisFileNotCreated,
ProblemNotFound,
ByggisFileNotFound,
TestsNotFound,
MainNotFound,
CompileTimeError(String),
ConfigFileNotFound,
InvalidToken,
MainFailure,
}
Expand description
Error enum containing all the errors that can be returned from the modules
Variants
NetworkError
Reflects errors connecting to kattis
DirectoryNotCreated
Reflects error scenario where directory could not be created
ByggisFileNotCreated
Reflects error scenario where byggis file cannot be created
ProblemNotFound
Reflects 404 from kattis when searching for the problem
ByggisFileNotFound
Scenario where byggis file is not found
TestsNotFound
Scenario where the tests in the file is not found
MainNotFound
Reflects scenario where main file cant be found in the directory
CompileTimeError(String)
Reflects scenario where the users code cant compile
ConfigFileNotFound
Scenario where byggis cannot find a config file to read token from
InvalidToken
Scenario where kattis refuses the given token
MainFailure
Scenario where byggis cannot create the main file
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ByggisErrors
impl Send for ByggisErrors
impl Sync for ByggisErrors
impl Unpin for ByggisErrors
impl UnwindSafe for ByggisErrors
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more