pub enum Error {
Show 15 variants
Network(String),
Parsing(String),
Crypto(String),
Html(String),
Credentials(String),
UntisAPI(String),
DateTime(String),
Threading(String),
SchoolNotFound(String),
KeyPair,
LoginTimeout(u32),
LessonUploadError(LessonUploadError),
ServerSide(String),
FileSystem(String),
InvalidInput(String),
}Variants§
Network(String)
Parsing(String)
Happens if anything goes wrong with parsing
Crypto(String)
Html(String)
Credentials(String)
Happens if something goes wrong when logging into Untis
UntisAPI(String)
Happens if anything goes wrong while accessing the Untis API
DateTime(String)
Happens if anything goes wrong when processing Dates and/or Times
Threading(String)
Happens if something goes wrong with Threads (like tokio::task::spawn_blocking
SchoolNotFound(String)
Happens if no school with the provided id is found
KeyPair
Happens if key_pair generation fails
LoginTimeout(u32)
Happens if the user tried to log in to often with the same password. The u32 contains the timeout in seconds
LessonUploadError(LessonUploadError)
Happens if anything goes wrong with uploading a file in Lessons
ServerSide(String)
Some other Error that may be an issue with the provided values or with the lanis backend
FileSystem(String)
Happens if anything goes wrong when interacting with the file system
InvalidInput(String)
Happens if any input is invalid
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Error
impl<'de> Deserialize<'de> for Error
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for Error
impl Ord for Error
Source§impl PartialOrd for Error
impl PartialOrd for Error
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.