pub struct SpawnOptions {
pub interceptors: Vec<Box<dyn InboundInterceptor>>,
pub mailbox: MailboxConfig,
}Expand description
Options for spawning an actor, including the inbound interceptor pipeline.
Use ..Default::default() to future-proof against new fields.
Fields§
§interceptors: Vec<Box<dyn InboundInterceptor>>Inbound interceptors to attach to the actor.
mailbox: MailboxConfigMailbox capacity configuration.
When Bounded, a bounded mpsc channel is
placed in front of the coerce actor to enforce backpressure. The
OverflowStrategy controls what
happens when the channel is full.
Trait Implementations§
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