Struct solana_client::tpu_client::TpuClient [−][src]
pub struct TpuClient { /* fields omitted */ }
Expand description
Client which sends transactions directly to the current leader’s TPU port over UDP. The client uses RPC to determine the current leader and fetch node contact info
Implementations
impl TpuClient
[src]
impl TpuClient
[src]pub fn send_transaction(&self, transaction: &Transaction) -> bool
[src]
pub fn send_transaction(&self, transaction: &Transaction) -> bool
[src]Serializes and sends a transaction to the current leader’s TPU port
pub fn send_wire_transaction(&self, wire_transaction: &[u8]) -> bool
[src]
pub fn send_wire_transaction(&self, wire_transaction: &[u8]) -> bool
[src]Sends a transaction to the current leader’s TPU port
pub fn new(
rpc_client: Arc<RpcClient>,
websocket_url: &str,
config: TpuClientConfig
) -> Result<Self, TpuSenderError>
[src]
pub fn new(
rpc_client: Arc<RpcClient>,
websocket_url: &str,
config: TpuClientConfig
) -> Result<Self, TpuSenderError>
[src]Create a new client that disconnects when dropped
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for TpuClient
impl Send for TpuClient
impl Sync for TpuClient
impl Unpin for TpuClient
impl !UnwindSafe for TpuClient
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
pub default fn example() -> T
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,