Enum viceroy_lib::error::FastlyConfigError [−][src]
pub enum FastlyConfigError {
IoError {
path: String,
err: Error,
},
InvalidBackendDefinition {
name: String,
err: BackendConfigError,
},
InvalidDictionaryDefinition {
name: String,
err: DictionaryConfigError,
},
InvalidFastlyToml(Error),
InvalidManifestVersion(SemVerError),
}Expand description
Errors that can occur while parsing a fastly.toml file.
Variants
An I/O error that occured while reading the file.
Fields of InvalidBackendDefinition
name: Stringerr: BackendConfigErrorFields of InvalidDictionaryDefinition
name: Stringerr: DictionaryConfigErrorInvalidFastlyToml(Error)An error that occurred while deserializing the file.
This represents errors caused by syntactically invalid TOML data, missing fields, etc.
Tuple Fields of InvalidFastlyToml
0: ErrorInvalidManifestVersion(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.
Tuple Fields of InvalidManifestVersion
0: SemVerErrorTrait Implementations
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for FastlyConfigError
impl Send for FastlyConfigError
impl Sync for FastlyConfigError
impl Unpin for FastlyConfigError
impl !UnwindSafe for FastlyConfigError
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn get_fd_flags(&self) -> Result<FdFlags, Error> where
T: AsFilelike,
pub fn get_fd_flags(&self) -> Result<FdFlags, Error> where
T: AsFilelike,
Query the “status” flags for the self file descriptor.
pub fn new_set_fd_flags(
&self,
fd_flags: FdFlags
) -> Result<SetFdFlags<T>, Error> where
T: AsFilelike,
pub fn new_set_fd_flags(
&self,
fd_flags: FdFlags
) -> Result<SetFdFlags<T>, Error> where
T: AsFilelike,
Create a new SetFdFlags value for use with set_fd_flags. Read more
pub fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error> where
T: AsFilelike,
pub 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
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more