pub struct Error { /* private fields */ }
Expand description
Error from an OpenStack call.
Implementations§
source§impl Error
impl Error
sourcepub fn new<S>(kind: ErrorKind, message: S) -> Errorwhere
S: Into<String>,
pub fn new<S>(kind: ErrorKind, message: S) -> Errorwhere S: Into<String>,
Create a new error of the provided kind.
sourcepub fn set_status(&mut self, status: StatusCode)
pub fn set_status(&mut self, status: StatusCode)
Add an HTTP status code to the error.
sourcepub fn with_status(self, status: StatusCode) -> Error
pub fn with_status(self, status: StatusCode) -> Error
Add an HTTP status code to the error.
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§impl<T: Refresh + Debug + Send> Waiter<(), Error> for DeletionWaiter<T>
impl<T: Refresh + Debug + Send> Waiter<(), Error> for DeletionWaiter<T>
source§fn default_delay(&self) -> Duration
fn default_delay(&self) -> Duration
Default delay between two retries.
source§fn timeout_error(&self) -> Error
fn timeout_error(&self) -> Error
Error to return on timeout.
source§fn poll<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<Option<()>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn poll<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<Option<()>>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Update the current state of the action. Read more
source§fn wait<'async_trait>(
self
) -> Pin<Box<dyn Future<Output = Result<T, E>> + Send + 'async_trait, Global>>where
Self: Sized + Send + 'async_trait,
fn wait<'async_trait>( self ) -> Pin<Box<dyn Future<Output = Result<T, E>> + Send + 'async_trait, Global>>where Self: Sized + Send + 'async_trait,
Wait for the default amount of time. Read more
source§fn wait_for<'async_trait>(
self,
duration: Duration
) -> Pin<Box<dyn Future<Output = Result<T, E>> + Send + 'async_trait, Global>>where
Self: Sized + Send + 'async_trait,
fn wait_for<'async_trait>( self, duration: Duration ) -> Pin<Box<dyn Future<Output = Result<T, E>> + Send + 'async_trait, Global>>where Self: Sized + Send + 'async_trait,
Wait for specified amount of time. Read more
source§fn wait_for_with_delay<'async_trait>(
self,
duration: Duration,
delay: Duration
) -> Pin<Box<dyn Future<Output = Result<T, E>> + Send + 'async_trait, Global>>where
Self: Sized + Send + 'async_trait,
fn wait_for_with_delay<'async_trait>( self, duration: Duration, delay: Duration ) -> Pin<Box<dyn Future<Output = Result<T, E>> + Send + 'async_trait, Global>>where Self: Sized + Send + 'async_trait,
Wait for specified amount of time.
source§impl<'server> Waiter<(), Error> for ServerStatusWaiter<'server>
impl<'server> Waiter<(), Error> for ServerStatusWaiter<'server>
source§fn default_delay(&self) -> Duration
fn default_delay(&self) -> Duration
Default delay between two retries.
source§fn timeout_error(&self) -> Error
fn timeout_error(&self) -> Error
Error to return on timeout.
source§fn poll<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<Option<()>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn poll<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<Option<()>>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Update the current state of the action. Read more
source§fn wait<'async_trait>(
self
) -> Pin<Box<dyn Future<Output = Result<T, E>> + Send + 'async_trait, Global>>where
Self: Sized + Send + 'async_trait,
fn wait<'async_trait>( self ) -> Pin<Box<dyn Future<Output = Result<T, E>> + Send + 'async_trait, Global>>where Self: Sized + Send + 'async_trait,
Wait for the default amount of time. Read more
source§fn wait_for<'async_trait>(
self,
duration: Duration
) -> Pin<Box<dyn Future<Output = Result<T, E>> + Send + 'async_trait, Global>>where
Self: Sized + Send + 'async_trait,
fn wait_for<'async_trait>( self, duration: Duration ) -> Pin<Box<dyn Future<Output = Result<T, E>> + Send + 'async_trait, Global>>where Self: Sized + Send + 'async_trait,
Wait for specified amount of time. Read more
source§fn wait_for_with_delay<'async_trait>(
self,
duration: Duration,
delay: Duration
) -> Pin<Box<dyn Future<Output = Result<T, E>> + Send + 'async_trait, Global>>where
Self: Sized + Send + 'async_trait,
fn wait_for_with_delay<'async_trait>( self, duration: Duration, delay: Duration ) -> Pin<Box<dyn Future<Output = Result<T, E>> + Send + 'async_trait, Global>>where Self: Sized + Send + 'async_trait,
Wait for specified amount of time.
source§impl Waiter<Server, Error> for ServerCreationWaiter
impl Waiter<Server, Error> for ServerCreationWaiter
source§fn default_delay(&self) -> Duration
fn default_delay(&self) -> Duration
Default delay between two retries.
source§fn timeout_error(&self) -> Error
fn timeout_error(&self) -> Error
Error to return on timeout.
source§fn poll<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<Option<Server>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn poll<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<Option<Server>>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Update the current state of the action. Read more
source§fn wait<'async_trait>(
self
) -> Pin<Box<dyn Future<Output = Result<T, E>> + Send + 'async_trait, Global>>where
Self: Sized + Send + 'async_trait,
fn wait<'async_trait>( self ) -> Pin<Box<dyn Future<Output = Result<T, E>> + Send + 'async_trait, Global>>where Self: Sized + Send + 'async_trait,
Wait for the default amount of time. Read more
source§fn wait_for<'async_trait>(
self,
duration: Duration
) -> Pin<Box<dyn Future<Output = Result<T, E>> + Send + 'async_trait, Global>>where
Self: Sized + Send + 'async_trait,
fn wait_for<'async_trait>( self, duration: Duration ) -> Pin<Box<dyn Future<Output = Result<T, E>> + Send + 'async_trait, Global>>where Self: Sized + Send + 'async_trait,
Wait for specified amount of time. Read more
source§fn wait_for_with_delay<'async_trait>(
self,
duration: Duration,
delay: Duration
) -> Pin<Box<dyn Future<Output = Result<T, E>> + Send + 'async_trait, Global>>where
Self: Sized + Send + 'async_trait,
fn wait_for_with_delay<'async_trait>( self, duration: Duration, delay: Duration ) -> Pin<Box<dyn Future<Output = Result<T, E>> + Send + 'async_trait, Global>>where Self: Sized + Send + 'async_trait,
Wait for specified amount of time.