# Struct ethcore_rpc::v1::ConfirmationsQueue [−] [src]

    pub struct ConfirmationsQueue { /* fields omitted */ }

Queue for all unconfirmed requests.

## Methods

### `impl ConfirmationsQueue`
[src]

#### `fn start_listening<F>(&self, listener: F) -> Result<(), QueueError> where F: Fn(QueueEvent) -> ()`

Blocks the thread and starts listening for notifications regarding all actions in the queue. For each event, `listener` callback will be invoked. This method can be used only once (only single consumer of events can exist).

#### `fn finish(&self)`

Notifies consumer that the communcation is over. No more events will be sent after this function is invoked.

## Trait Implementations

### `impl Default for ConfirmationsQueue`
[src]

#### `fn default() -> Self`

Returns the "default value" for a type. Read more

### `impl Drop for ConfirmationsQueue`
[src]

#### `fn drop(&mut self)`

A method called when the value goes out of scope. Read more

### `impl SigningQueue for ConfirmationsQueue`
[src]

#### `fn add_request(&self,
request: ConfirmationPayload)
-> Result<ConfirmationPromise, QueueAddError>`

Add new request to the queue. Returns a `ConfirmationPromise` that can be used to await for resolution of given request. Read more

#### `fn peek(&self, id: &U256) -> Option<ConfirmationRequest>`

Returns a request if it is contained in the queue.

#### `fn request_rejected(&self, id: U256) -> Option<ConfirmationRequest>`

Removes a request from the queue. Notifies possible token holders that request was rejected. Read more

#### `fn request_confirmed(&self,
id: U256,
result: Result<ConfirmationResponse, Error>)
-> Option<ConfirmationRequest>`

Removes a request from the queue. Notifies possible token holders that request was confirmed and given hash was assigned. Read more

#### `fn requests(&self) -> Vec<ConfirmationRequest>`

Return copy of all the requests in the queue.

#### `fn len(&self) -> usize`

Returns number of requests awaiting confirmation.

#### `fn is_empty(&self) -> bool`

Returns true if there are no requests awaiting confirmation.

# Help

## Keyboard Shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result
+
  Collapse/expand all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)