pub struct Manager { /* private fields */ }
Expand description

A manager for components and auxiliary services.

Implementations

Creates a new manager.

Loads the given config file.

Parses the given file as a TOML config file. All links to units referenced in the configuration are pre-connected.

If there are any errors in the config file, they are logged as errors and a generic error is returned.

If the method succeeds, you need to spawn all units and targets via the spawn method.

Spawns all units and targets in the config unto the given runtime.

Panics

The method panics if the config hasn’t been successfully loaded via the same manager earlier.

Returns a new reference to the manager’s metrics collection.

Returns a new reference the the HTTP resources collection.

Trait Implementations

Returns the “default value” for a type. 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.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

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

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more