pub struct RpcClient { /* private fields */ }
Expand description
Base RPC client. It is useless on its own, please see the attached methods to see how to transform it into a specialized client.
Implementations§
Source§impl RpcClient
impl RpcClient
Sourcepub fn new(addr: String) -> Result<Self>
👎Deprecated: Use should prefer using the builder interface instead!
pub fn new(addr: String) -> Result<Self>
Create a new generic RPC client that can be transformed into specialized client.
You should prefer using the RpcClientBuilder
instead.
Sourcepub fn daemon(self) -> DaemonJsonRpcClient
pub fn daemon(self) -> DaemonJsonRpcClient
Transform the client into the specialized DaemonJsonRpcClient
that interacts with JSON RPC
methods on daemon.
Sourcepub fn daemon_rpc(self) -> DaemonRpcClient
pub fn daemon_rpc(self) -> DaemonRpcClient
Transform the client into the specialized DaemonRpcClient
that interacts with methods on
daemon called with their own extensions.
Sourcepub fn wallet(self) -> WalletClient
pub fn wallet(self) -> WalletClient
Transform the client into the specialized WalletClient
that interacts with a Monero
wallet RPC daemon.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RpcClient
impl !RefUnwindSafe for RpcClient
impl Send for RpcClient
impl Sync for RpcClient
impl Unpin for RpcClient
impl !UnwindSafe for RpcClient
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