Enum viceroy_lib::error::FastlyConfigError
source · pub enum FastlyConfigError {
IoError {
path: String,
err: Error,
},
InvalidDeviceDetectionDefinition {
name: String,
err: DeviceDetectionConfigError,
},
InvalidGeolocationDefinition {
name: String,
err: GeolocationConfigError,
},
InvalidBackendDefinition {
name: String,
err: BackendConfigError,
},
InvalidDictionaryDefinition {
name: String,
err: DictionaryConfigError,
},
InvalidObjectStoreDefinition {
name: String,
err: ObjectStoreConfigError,
},
InvalidSecretStoreDefinition {
name: String,
err: SecretStoreConfigError,
},
InvalidFastlyToml(Error),
InvalidManifestVersion(SemVerError),
}
Expand description
Errors that can occur while parsing a fastly.toml
file.
Variants§
IoError
An I/O error that occurred while reading the file.
InvalidDeviceDetectionDefinition
InvalidGeolocationDefinition
InvalidBackendDefinition
InvalidDictionaryDefinition
InvalidObjectStoreDefinition
InvalidSecretStoreDefinition
InvalidFastlyToml(Error)
An error that occurred while deserializing the file.
This represents errors caused by syntactically invalid TOML data, missing fields, etc.
InvalidManifestVersion(SemVerError)
An error caused by an invalid manifest version.
This means that the provided version is not compliant with the semver spec. See the
documentation of semver::Version::parse
for more information.
Trait Implementations§
source§impl Debug for FastlyConfigError
impl Debug for FastlyConfigError
source§impl Display for FastlyConfigError
impl Display for FastlyConfigError
source§impl Error for FastlyConfigError
impl Error for FastlyConfigError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 FastlyConfigError
impl From<Error> for FastlyConfigError
source§impl From<FastlyConfigError> for Error
impl From<FastlyConfigError> for Error
source§fn from(source: FastlyConfigError) -> Self
fn from(source: FastlyConfigError) -> Self
Converts to this type from the input type.
source§impl From<SemVerError> for FastlyConfigError
impl From<SemVerError> for FastlyConfigError
source§fn from(source: SemVerError) -> Self
fn from(source: SemVerError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FastlyConfigError
impl !RefUnwindSafe for FastlyConfigError
impl Send for FastlyConfigError
impl Sync for FastlyConfigError
impl Unpin for FastlyConfigError
impl !UnwindSafe for FastlyConfigError
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> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
source§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
Query the “status” flags for the
self
file descriptor.source§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
source§fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
Set the “status” flags for the
self
file descriptor. Read more