pub struct SimpleRestartingEventManager<I, MT, S, SP>where
    I: Input,
    SP: ShMemProvider,
    MT: Monitor + Debug,
{ /* private fields */ }
Expand description

Provides a builder which can be used to build a SimpleRestartingEventManager, which is a combination of a restarter and runner, that can be used on systems both with and without fork support. The restarter will start a new process each time the child crashes or times out.

Implementations

Launch the simple restarting manager. This EventManager is simple and single threaded, but can still used shared maps to recover from crashes and timeouts.

Trait Implementations

Formats the value using the given formatter. Read more
Send off an Event to the broker Read more
Send off an Event::Log event to the broker. This is a shortcut for EventFirer::fire with Event::Log as argument. Read more
Serialize all observers for this type and manager
Get the configuration
Lookup for incoming events and process them. Return the number of processes events or an error Read more
Deserialize all observers for this type and manager

Reset the single page (we reuse it over and over from pos 0), then send the current state to the next runner.

Block until we are safe to exit.
Adds a custom buffer handler that will run for each incoming CustomBuf event.
The id of this manager. For Multiprocessed EventManagers, each client should have a unique ids. Read more
Given the last time, if monitor_timeout seconds passed, send off an info/monitor/heartbeat message to the broker. Returns the new last time (so the old one, unless monitor_timeout time has passed and monitor have been sent) Will return an crate::Error, if the stats could not be sent. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The Resulting TupleList, of an Prepend::prepend() call, including the prepended entry. Read more
Prepend a value to this tuple, returning a new tuple with prepended value.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.