pub struct ValidatorTpuConfig {
pub use_quic: bool,
pub vote_use_quic: bool,
pub tpu_connection_pool_size: usize,
pub tpu_enable_udp: bool,
pub tpu_quic_server_config: QuicServerParams,
pub tpu_fwd_quic_server_config: QuicServerParams,
pub vote_quic_server_config: QuicServerParams,
}
Expand description
A struct easing passing Validator TPU Configurations
Fields§
§use_quic: bool
Controls if to use QUIC for sending regular TPU transaction
vote_use_quic: bool
Controls if to use QUIC for sending TPU votes
tpu_connection_pool_size: usize
Controls the connection cache pool size
tpu_enable_udp: bool
Controls if to enable UDP for TPU tansactions.
tpu_quic_server_config: QuicServerParams
QUIC server config for regular TPU
tpu_fwd_quic_server_config: QuicServerParams
QUIC server config for TPU forward
vote_quic_server_config: QuicServerParams
QUIC server config for Vote
Implementations§
Source§impl ValidatorTpuConfig
impl ValidatorTpuConfig
Sourcepub fn new_for_tests(tpu_enable_udp: bool) -> Self
pub fn new_for_tests(tpu_enable_udp: bool) -> Self
A convenient function to build a ValidatorTpuConfig for testing with good default.
Auto Trait Implementations§
impl Freeze for ValidatorTpuConfig
impl RefUnwindSafe for ValidatorTpuConfig
impl Send for ValidatorTpuConfig
impl Sync for ValidatorTpuConfig
impl Unpin for ValidatorTpuConfig
impl UnwindSafe for ValidatorTpuConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request