pub struct SignerClient { /* private fields */ }
Implementations§
Source§impl SignerClient
impl SignerClient
pub fn new(api_client: ApiClient, signer: Arc<dyn Signer + Send + Sync>) -> Self
pub fn with_ethereum_signer( api_client: ApiClient, private_key: &str, ) -> Result<Self>
pub fn api_client(&self) -> &ApiClient
pub fn signer(&self) -> &Arc<dyn Signer + Send + Sync>
pub fn generate_nonce(&self) -> Result<u64>
pub fn get_address(&self) -> Result<String>
Trait Implementations§
Source§impl Clone for SignerClient
impl Clone for SignerClient
Auto Trait Implementations§
impl Freeze for SignerClient
impl !RefUnwindSafe for SignerClient
impl Send for SignerClient
impl Sync for SignerClient
impl Unpin for SignerClient
impl !UnwindSafe for SignerClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more