pub struct Error { /* private fields */ }Expand description
Error from an OpenStack call.
Implementations§
Source§impl Error
impl Error
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>>
fn wait<'async_trait>( self, ) -> Pin<Box<dyn Future<Output = Result<T, E>> + 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>>
fn wait_for<'async_trait>( self, duration: Duration, ) -> Pin<Box<dyn Future<Output = Result<T, E>> + 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>>
fn wait_for_with_delay<'async_trait>( self, duration: Duration, delay: Duration, ) -> Pin<Box<dyn Future<Output = Result<T, E>> + 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>>
fn wait<'async_trait>( self, ) -> Pin<Box<dyn Future<Output = Result<T, E>> + 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>>
fn wait_for<'async_trait>( self, duration: Duration, ) -> Pin<Box<dyn Future<Output = Result<T, E>> + 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>>
fn wait_for_with_delay<'async_trait>( self, duration: Duration, delay: Duration, ) -> Pin<Box<dyn Future<Output = Result<T, E>> + 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>>
fn wait<'async_trait>( self, ) -> Pin<Box<dyn Future<Output = Result<T, E>> + 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>>
fn wait_for<'async_trait>( self, duration: Duration, ) -> Pin<Box<dyn Future<Output = Result<T, E>> + 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>>
fn wait_for_with_delay<'async_trait>( self, duration: Duration, delay: Duration, ) -> Pin<Box<dyn Future<Output = Result<T, E>> + Send + 'async_trait>>
Wait for specified amount of time.
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.