[−][src]Struct ton_client_rs::TonClient
Entry point for TON blockchain interaction. Provides useful methods for TON clients
Fields
crypto: TonCrypto
contracts: TonContracts
Methods
impl TonClient
[src]
pub fn new(config: &TonClientConfig) -> TonResult<TonClient>
[src]
Create TonClient
instance with full configuration.
pub fn new_with_base_url(base_url: &str) -> TonResult<TonClient>
[src]
Create TonClient
instance with base URL only. Other URLs are derived from base URL.write!
default_workchain
is set to 0.
pub fn default() -> TonResult<TonClient>
[src]
Create TonClient
instance with default parameters.
pub fn get_client_version(&self) -> String
[src]
Get version of the library
pub fn setup(&self, config: &TonClientConfig) -> TonResult<()>
[src]
Set parameters for node interaction
Trait Implementations
Auto Trait Implementations
impl Sync for TonClient
impl Unpin for TonClient
impl Send for TonClient
impl UnwindSafe for TonClient
impl RefUnwindSafe for TonClient
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,