pub struct DieselAdminServiceStore<C: Connection + 'static> { /* private fields */ }
Expand description

A database-backed AdminServiceStore, powered by Diesel.

Implementations

Creates a new DieselAdminServiceStore.

Arguments
  • connection_pool: connection pool for the database

Create a new DieselAdminServiceStore with write exclusivity enabled.

Write exclusivity is enforced by providing a connection pool that is wrapped in a RwLock. This ensures that there may be only one writer, but many readers.

Arguments
  • connection_pool: read-write lock-guarded connection pool for the database

Trait Implementations

Adds a circuit proposal to the store Read more

Updates a circuit proposal in the store Read more

Removes a circuit proposal from the store Read more

Fetches a circuit proposal from the store Read more

List circuit proposals from the store Read more

Returns the count of proposals in the store Read more

Adds a circuit to the store along with the associated services and nodes Read more

Updates a circuit in the store Read more

Removes a circuit from the store Read more

Fetches a circuit from the store Read more

List all circuits from the store Read more

Returns the count of circuits in the store Read more

Adds a circuit, along with the associated services and nodes, to the store based on the proposal that is already in state. The associated circuit proposal for the circuit ID is also removed. Read more

Fetches a node from the store Read more

List all nodes from the store

Fetches a service from the store Read more

List all services in a specific circuit from the store Read more

Add an event to the AdminServiceEventStore. Returns the recorded event index and a copy of the event. Read more

List AdminServiceEvents that have been added to the store since the provided index. Read more

List AdminServiceEvents, with a corresponding CircuitProposal that has the specified circuit_management_type, that have been added to the store since the provided index. Read more

Adds a circuit proposal to the store Read more

Updates a circuit proposal in the store Read more

Removes a circuit proposal from the store Read more

Fetches a circuit proposal from the store Read more

List circuit proposals from the store Read more

Returns the count of proposals in the store Read more

Adds a circuit to the store along with the associated services and nodes Read more

Updates a circuit in the store Read more

Removes a circuit from the store Read more

Fetches a circuit from the store Read more

List all circuits from the store Read more

Returns the count of circuits in the store Read more

Adds a circuit, along with the associated services and nodes, to the store based on the proposal that is already in state. The associated circuit proposal for the circuit ID is also removed. Read more

Fetches a node from the store Read more

List all nodes from the store

Fetches a service from the store Read more

List all services in a specific circuit from the store Read more

Add an event to the AdminServiceEventStore. Returns the recorded event index and a copy of the event. Read more

List AdminServiceEvents that have been added to the store since the provided index. Read more

List AdminServiceEvents, with a corresponding CircuitProposal that has the specified circuit_management_type, that have been added to the store since the provided index. Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. 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

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.

Convert self to an expression for Diesel’s query builder. Read more

Convert &self to an expression for Diesel’s query builder. Read more

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

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