pub enum GtfsGeneratorError {
NoId,
InvalidReference(String),
Csv(Error),
Zip(ZipError),
Io(Error),
}Expand description
Error type for GTFS writing
Variants§
NoId
An entry did not have an ID. This crate currently requires agency IDs to be set.
InvalidReference(String)
The entry referred to by a foreign key could not be found.
Csv(Error)
An error occured while serializing CSV
Zip(ZipError)
An error occured while writing the ZIP file
Io(Error)
A general IO error occured
Trait Implementations§
Source§impl Debug for GtfsGeneratorError
impl Debug for GtfsGeneratorError
Source§impl Display for GtfsGeneratorError
impl Display for GtfsGeneratorError
Source§impl Error for GtfsGeneratorError
impl Error for GtfsGeneratorError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Error> for GtfsGeneratorError
impl From<Error> for GtfsGeneratorError
Source§impl From<Error> for GtfsGeneratorError
impl From<Error> for GtfsGeneratorError
Auto Trait Implementations§
impl Freeze for GtfsGeneratorError
impl !RefUnwindSafe for GtfsGeneratorError
impl Send for GtfsGeneratorError
impl Sync for GtfsGeneratorError
impl Unpin for GtfsGeneratorError
impl !UnwindSafe for GtfsGeneratorError
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