# Trait ethcore_rpc::v1::SigningQueue [−] [src]

    pub trait SigningQueue: Send + Sync {
        fn add_request(&self,
                   request: ConfirmationPayload)
                   -> Result<ConfirmationPromise, QueueAddError>;
        fn request_rejected(&self, id: U256) -> Option<ConfirmationRequest>;
        fn request_confirmed(&self,
                         id: U256,
                         result: Result<ConfirmationResponse, Error>)
                         -> Option<ConfirmationRequest>;
        fn peek(&self, id: &U256) -> Option<ConfirmationRequest>;
        fn requests(&self) -> Vec<ConfirmationRequest>;
        fn len(&self) -> usize;
        fn is_empty(&self) -> bool;
    }

A queue of transactions awaiting to be confirmed and signed.

## Required Methods

### `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.

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

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

### `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.

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

Returns a request if it is contained in the queue.

### `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.

## Implementors

- `impl SigningQueue for ConfirmationsQueue`

# 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`)