Struct parity_rpc::v1::signer::SignerService
source · [−]pub struct SignerService { /* private fields */ }
Expand description
Manages communication with Signer crate
Implementations
sourceimpl SignerService
impl SignerService
sourcepub fn new<F>(new_token: F, is_enabled: bool) -> Self where
F: Fn() -> Result<String, String> + Send + Sync + 'static,
pub fn new<F>(new_token: F, is_enabled: bool) -> Self where
F: Fn() -> Result<String, String> + Send + Sync + 'static,
Creates new Signer Service given function to generate new tokens.
sourcepub fn generate_token(&self) -> Result<String, String>
pub fn generate_token(&self) -> Result<String, String>
Generates new signer authorization token.
sourcepub fn queue(&self) -> Arc<ConfirmationsQueue>
pub fn queue(&self) -> Arc<ConfirmationsQueue>
Returns a reference to ConfirmationsQueue
sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
Returns true if Signer is enabled.
Methods from Deref<Target = ConfirmationsQueue>
Trait Implementations
sourceimpl Deref for SignerService
impl Deref for SignerService
type Target = ConfirmationsQueue
type Target = ConfirmationsQueue
The resulting type after dereferencing.
Auto Trait Implementations
impl !RefUnwindSafe for SignerService
impl Send for SignerService
impl Sync for SignerService
impl Unpin for SignerService
impl !UnwindSafe for SignerService
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