Enum fastly::backend::BackendCreationError
source · pub enum BackendCreationError {
ConnectTimeoutTooLarge(Duration),
FirstByteTimeoutTooLarge(Duration),
BetweenBytesTimeoutTooLarge(Duration),
Disallowed,
HostError(FastlyStatus),
EncodingError(FromUtf8Error),
NameTooLong(String),
NameInUse,
}
Expand description
Errors that can arise from attempting to create a dynamic backend.
Perhaps the most critical of these is Disallowed
, which will occur
if your service is not permitted to use dynamic backends.
Variants§
ConnectTimeoutTooLarge(Duration)
Timeouts for backends must be less than 2^32 milliseconds, or about a month and a half.
FirstByteTimeoutTooLarge(Duration)
Timeouts for backends must be less than 2^32 milliseconds, or about a month and a half.
BetweenBytesTimeoutTooLarge(Duration)
Timeouts for backends must be less than 2^32 milliseconds, or about a month and a half.
Disallowed
This service is not allowed to create dynamic backends.
If you’d like to use dynamic backends, please contact your Fastly sales agent.
HostError(FastlyStatus)
Something internal went wrong with the service at runtime; you may be able to do something to react to this information.
This value is identical to the values underlying FastlyStatus
.
EncodingError(FromUtf8Error)
There was a problem converting the new name from the host into
something we could turn into a Rust String
.
Please check the prefix you provided, if you provided one, and make sure it’s reasonable.
NameTooLong(String)
The backend name provided was too long; please keep it to <255 characters.
NameInUse
The backend name is already in use.
Trait Implementations§
source§impl Clone for BackendCreationError
impl Clone for BackendCreationError
source§fn clone(&self) -> BackendCreationError
fn clone(&self) -> BackendCreationError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BackendCreationError
impl Debug for BackendCreationError
source§impl Display for BackendCreationError
impl Display for BackendCreationError
source§impl Error for BackendCreationError
impl Error for BackendCreationError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl From<FastlyStatus> for BackendCreationError
impl From<FastlyStatus> for BackendCreationError
source§fn from(x: FastlyStatus) -> Self
fn from(x: FastlyStatus) -> Self
source§impl From<FromUtf8Error> for BackendCreationError
impl From<FromUtf8Error> for BackendCreationError
source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
source§impl PartialEq<BackendCreationError> for BackendCreationError
impl PartialEq<BackendCreationError> for BackendCreationError
source§fn eq(&self, other: &BackendCreationError) -> bool
fn eq(&self, other: &BackendCreationError) -> bool
self
and other
values to be equal, and is used
by ==
.