Struct solana_core::banking_trace::BankingTracer
source · pub struct BankingTracer { /* private fields */ }
Implementations§
source§impl BankingTracer
impl BankingTracer
pub fn new( maybe_config: Option<(&PathBuf, Arc<AtomicBool>, DirByteLimit)> ) -> Result<(Arc<Self>, TracerThread), TraceError>
pub fn new_disabled() -> Arc<Self>
pub fn is_enabled(&self) -> bool
pub fn create_channel_non_vote( &self ) -> (BankingPacketSender, BankingPacketReceiver)
pub fn create_channel_tpu_vote( &self ) -> (BankingPacketSender, BankingPacketReceiver)
pub fn create_channel_gossip_vote( &self ) -> (BankingPacketSender, BankingPacketReceiver)
pub fn hash_event(&self, slot: Slot, blockhash: &Hash, bank_hash: &Hash)
pub fn channel_for_test() -> (TracedSender, Receiver<BankingPacketBatch>)
pub fn ensure_cleanup_path(path: &PathBuf) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BankingTracer
impl RefUnwindSafe for BankingTracer
impl Send for BankingTracer
impl Sync for BankingTracer
impl Unpin for BankingTracer
impl UnwindSafe for BankingTracer
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