pub enum Error {
ReadingFile(Error),
WritingFile(Error),
SerializingPolicy(String),
DeserializingJson(String),
InvalidPolicy,
}
Expand description
Errors possible with file read/write.
Variants§
ReadingFile(Error)
Wrapper for any IO error that occurs during reading.
WritingFile(Error)
Wrapper for any IO error that occurs during writing.
SerializingPolicy(String)
Wrapper for Serde error serializing object to JSON.
DeserializingJson(String)
Wrapper for Serde error de-serializing JSON to object.
InvalidPolicy
The policy read from a file is not valid.
Trait Implementations§
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