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
Serializes and sends a transaction to the current leader’s TPU port
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 !UnwindSafe for TpuClient
Blanket Implementations
pub default fn example() -> T
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V