Struct solana_client::http_sender::HttpSender
source · [−]pub struct HttpSender { /* private fields */ }
Implementations
sourceimpl HttpSender
impl HttpSender
The standard RpcSender
over HTTP.
sourcepub fn new<U: ToString>(url: U) -> Self
pub fn new<U: ToString>(url: U) -> Self
Create an HTTP RPC sender.
The URL is an HTTP URL, usually for port 8899, as in “http://localhost:8899”. The sender has a default timeout of 30 seconds.
sourcepub fn new_with_timeout<U: ToString>(url: U, timeout: Duration) -> Self
pub fn new_with_timeout<U: ToString>(url: U, timeout: Duration) -> Self
Create an HTTP RPC sender.
The URL is an HTTP URL, usually for port 8899.
Trait Implementations
sourceimpl RpcSender for HttpSender
impl RpcSender for HttpSender
fn get_transport_stats(&self) -> RpcTransportStats
fn send(&self, request: RpcRequest, params: Value) -> Result<Value>
Auto Trait Implementations
impl !RefUnwindSafe for HttpSender
impl Send for HttpSender
impl Sync for HttpSender
impl Unpin for HttpSender
impl !UnwindSafe for HttpSender
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
pub default fn example() -> T
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more