Type Alias zebrad::components::mempool::State
source · type State = Buffer<BoxService<Request, Response, BoxError>, Request>;
Aliased Type§
struct State {
tx: UnboundedSender<Message<Request, Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error + Send + Sync>>> + Send>>>>,
semaphore: PollSemaphore,
permit: Option<OwnedSemaphorePermit>,
handle: Handle,
}
Fields§
§tx: UnboundedSender<Message<Request, Pin<Box<dyn Future<Output = Result<Response, Box<dyn Error + Send + Sync>>> + Send>>>>
§semaphore: PollSemaphore
§permit: Option<OwnedSemaphorePermit>
§handle: Handle