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 for BackendCreationError
impl PartialEq for BackendCreationError
impl StructuralPartialEq for BackendCreationError
Auto Trait Implementations§
impl Freeze for BackendCreationError
impl RefUnwindSafe for BackendCreationError
impl Send for BackendCreationError
impl Sync for BackendCreationError
impl Unpin for BackendCreationError
impl UnwindSafe for BackendCreationError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more