pub enum WaitForResources {
Forever,
ForSecs(f64),
}Expand description
How long to keep retrying a run start that the API rejects for lack of resources (see
ActorStartOptions::wait_for_resources).
Variants§
Forever
Retry until the run starts, how ever long that takes.
ForSecs(f64)
Retry for up to this many seconds (clamped to 0 if negative), then return the last
error. 0 makes a single attempt and returns its error without retrying.
Trait Implementations§
Source§impl Clone for WaitForResources
impl Clone for WaitForResources
impl Copy for WaitForResources
Source§impl Debug for WaitForResources
impl Debug for WaitForResources
Source§impl PartialEq for WaitForResources
impl PartialEq for WaitForResources
impl StructuralPartialEq for WaitForResources
Auto Trait Implementations§
impl Freeze for WaitForResources
impl RefUnwindSafe for WaitForResources
impl Send for WaitForResources
impl Sync for WaitForResources
impl Unpin for WaitForResources
impl UnsafeUnpin for WaitForResources
impl UnwindSafe for WaitForResources
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