Struct parity_rpc::v1::SignerClient
source · [−]pub struct SignerClient<D: Dispatcher> { /* private fields */ }
Expand description
Transactions confirmation (personal) rpc implementation.
Implementations
sourceimpl<D: Dispatcher + 'static> SignerClient<D>
impl<D: Dispatcher + 'static> SignerClient<D>
Trait Implementations
sourceimpl<D: Dispatcher + 'static> Signer for SignerClient<D>
impl<D: Dispatcher + 'static> Signer for SignerClient<D>
sourcefn requests_to_confirm(&self) -> Result<Vec<ConfirmationRequest>>
fn requests_to_confirm(&self) -> Result<Vec<ConfirmationRequest>>
Returns a list of items to confirm.
sourcefn confirm_request(
&self,
id: U256,
modification: TransactionModification,
pass: String
) -> BoxFuture<ConfirmationResponse>
fn confirm_request(
&self,
id: U256,
modification: TransactionModification,
pass: String
) -> BoxFuture<ConfirmationResponse>
Confirm specific request.
sourcefn confirm_request_with_token(
&self,
id: U256,
modification: TransactionModification,
token: String
) -> BoxFuture<ConfirmationResponseWithToken>
fn confirm_request_with_token(
&self,
id: U256,
modification: TransactionModification,
token: String
) -> BoxFuture<ConfirmationResponseWithToken>
Confirm specific request with token.
sourcefn confirm_request_raw(
&self,
id: U256,
bytes: Bytes
) -> Result<ConfirmationResponse>
fn confirm_request_raw(
&self,
id: U256,
bytes: Bytes
) -> Result<ConfirmationResponse>
Confirm specific request with already signed data.
sourcefn reject_request(&self, id: U256) -> Result<bool>
fn reject_request(&self, id: U256) -> Result<bool>
Reject the confirmation request.
sourcefn generate_token(&self) -> Result<String>
fn generate_token(&self) -> Result<String>
Generates new authorization token.
sourcefn subscribe_pending(
&self,
_meta: Self::Metadata,
sub: Subscriber<Vec<ConfirmationRequest>>
)
fn subscribe_pending(
&self,
_meta: Self::Metadata,
sub: Subscriber<Vec<ConfirmationRequest>>
)
Subscribe to new pending requests on signer interface.
sourcefn unsubscribe_pending(
&self,
_: Option<Self::Metadata>,
id: SubscriptionId
) -> Result<bool>
fn unsubscribe_pending(
&self,
_: Option<Self::Metadata>,
id: SubscriptionId
) -> Result<bool>
Unsubscribe from pending requests subscription.
sourcefn to_delegate(self) -> IoDelegate<Self, Self::Metadata>
fn to_delegate(self) -> IoDelegate<Self, Self::Metadata>
Create an IoDelegate
, wiring rpc calls to the trait methods.
Auto Trait Implementations
impl<D> !RefUnwindSafe for SignerClient<D>
impl<D> Send for SignerClient<D>
impl<D> Sync for SignerClient<D>
impl<D> Unpin for SignerClient<D> where
D: Unpin,
impl<D> !UnwindSafe for SignerClient<D>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more