pub struct SpawnOptions {
pub backoff: Option<BackoffConfig>,
}Expand description
Per-service spawn configuration.
Fields§
§backoff: Option<BackoffConfig>Override the supervisor’s default backoff config for this service.
Implementations§
Source§impl SpawnOptions
impl SpawnOptions
Sourcepub fn with_backoff(backoff: BackoffConfig) -> Self
pub fn with_backoff(backoff: BackoffConfig) -> Self
Create options with a custom backoff config.
Trait Implementations§
Source§impl Clone for SpawnOptions
impl Clone for SpawnOptions
Source§fn clone(&self) -> SpawnOptions
fn clone(&self) -> SpawnOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SpawnOptions
impl Debug for SpawnOptions
Source§impl Default for SpawnOptions
impl Default for SpawnOptions
Source§fn default() -> SpawnOptions
fn default() -> SpawnOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SpawnOptions
impl RefUnwindSafe for SpawnOptions
impl Send for SpawnOptions
impl Sync for SpawnOptions
impl Unpin for SpawnOptions
impl UnsafeUnpin for SpawnOptions
impl UnwindSafe for SpawnOptions
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