Struct solana_client::nonblocking::quic_client::QuicClient
source · [−]pub struct QuicClient { /* private fields */ }
Implementations
sourceimpl QuicClient
impl QuicClient
pub fn new(
endpoint: Arc<QuicLazyInitializedEndpoint>,
addr: SocketAddr,
chunk_size: usize
) -> Self
pub async fn send_buffer<T>(
&self,
data: T,
stats: &ClientStats,
connection_stats: Arc<ConnectionCacheStats>
) -> Result<(), ClientErrorKind>where
T: AsRef<[u8]>,
pub async fn send_batch<T>(
&self,
buffers: &[T],
stats: &ClientStats,
connection_stats: Arc<ConnectionCacheStats>
) -> Result<(), ClientErrorKind>where
T: AsRef<[u8]>,
pub fn tpu_addr(&self) -> &SocketAddr
pub fn stats(&self) -> Arc<ClientStats>
Auto Trait Implementations
impl !RefUnwindSafe for QuicClient
impl Send for QuicClient
impl Sync for QuicClient
impl Unpin for QuicClient
impl !UnwindSafe for QuicClient
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more