pub enum Placement {
MasterOnly,
WorkerOnly,
Both,
}Expand description
Where a plugin should be booted in the fork-after-warm model.
Declared via [Plugin::placement]. The core boots a plugin only in the
process(es) named here, passing the matching PluginRole in the
PluginContext.
Variants§
MasterOnly
Boot only in the master (e.g. process supervisor, the metrics
scrape server). The plugin never dispatches PHP.
WorkerOnly
Boot only in each worker (e.g. http/grpc listeners on
SO_REUSEPORT, jobs competing-consumers). This is the default.
Both
Boot in both master and every worker; the plugin branches on
PluginContext::role.
Implementations§
Trait Implementations§
impl Copy for Placement
impl Eq for Placement
impl StructuralPartialEq for Placement
Auto Trait Implementations§
impl Freeze for Placement
impl RefUnwindSafe for Placement
impl Send for Placement
impl Sync for Placement
impl Unpin for Placement
impl UnsafeUnpin for Placement
impl UnwindSafe for Placement
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