pub struct AccountsBackgroundService { /* private fields */ }
Implementations§
source§impl AccountsBackgroundService
impl AccountsBackgroundService
pub fn new( bank_forks: Arc<RwLock<BankForks>>, exit: Arc<AtomicBool>, request_handlers: AbsRequestHandlers, test_hash_calculation: bool, last_full_snapshot_slot: Option<Slot>, ) -> Self
sourcepub fn setup_bank_drop_callback(
bank_forks: Arc<RwLock<BankForks>>,
) -> DroppedSlotsReceiver
pub fn setup_bank_drop_callback( bank_forks: Arc<RwLock<BankForks>>, ) -> DroppedSlotsReceiver
Should be called immediately after bank_fork_utils::load_bank_forks(), and as such, there
should only be one bank, the root bank, in bank_forks
All banks added to bank_forks
will be descended from the root bank, and thus will inherit
the bank drop callback.
pub fn join(self) -> Result<()>
Auto Trait Implementations§
impl Freeze for AccountsBackgroundService
impl !RefUnwindSafe for AccountsBackgroundService
impl Send for AccountsBackgroundService
impl Sync for AccountsBackgroundService
impl Unpin for AccountsBackgroundService
impl !UnwindSafe for AccountsBackgroundService
Blanket Implementations§
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 more