pub struct ServerStatusWaiter<'server> { /* private fields */ }Expand description
Waiter for server status to change.
Implementations§
Source§impl<'server> ServerStatusWaiter<'server>
impl<'server> ServerStatusWaiter<'server>
Sourcepub fn current_state(&self) -> &Server
pub fn current_state(&self) -> &Server
Current state of the server.
Trait Implementations§
Source§impl<'server> Debug for ServerStatusWaiter<'server>
impl<'server> Debug for ServerStatusWaiter<'server>
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.
Auto Trait Implementations§
impl<'server> Freeze for ServerStatusWaiter<'server>
impl<'server> !RefUnwindSafe for ServerStatusWaiter<'server>
impl<'server> Send for ServerStatusWaiter<'server>
impl<'server> Sync for ServerStatusWaiter<'server>
impl<'server> Unpin for ServerStatusWaiter<'server>
impl<'server> !UnwindSafe for ServerStatusWaiter<'server>
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