pub struct SqlQueryRegistry { /* private fields */ }Implementations§
Source§impl SqlQueryRegistry
impl SqlQueryRegistry
pub fn new( max_active: usize, max_finished: usize, max_finished_bytes: usize, finished_ttl: Duration, ) -> Self
pub fn new_with_limits( max_active: usize, max_detailed: usize, max_detailed_bytes: usize, max_compact: usize, max_compact_bytes: usize, finished_ttl: Duration, ) -> Self
pub fn register( self: &Arc<Self>, options: SqlQueryOptions, ) -> Result<RegisteredSqlQuery>
pub fn cancel(&self, query_id: QueryId) -> CancelOutcome
pub fn status(&self, query_id: QueryId) -> Option<QueryStatus>
pub fn compact_finished_status( &self, query_id: QueryId, ) -> Option<CompactFinishedQuery>
pub fn cancel_session( &self, session_id: &str, reason: CancellationReason, ) -> usize
pub fn cancel_all(&self, reason: CancellationReason) -> usize
pub fn active_count(&self) -> usize
pub fn active_statuses(&self) -> Vec<QueryStatus>
pub fn active_for_session(&self, session_id: &str) -> usize
pub fn queued_count(&self) -> usize
pub fn entry_count(&self) -> usize
pub fn approximate_bytes(&self) -> usize
pub fn finished_count(&self) -> usize
pub fn stats(&self) -> QueryRegistryStats
Trait Implementations§
Source§impl Debug for SqlQueryRegistry
impl Debug for SqlQueryRegistry
Auto Trait Implementations§
impl !Freeze for SqlQueryRegistry
impl !RefUnwindSafe for SqlQueryRegistry
impl !UnwindSafe for SqlQueryRegistry
impl Send for SqlQueryRegistry
impl Sync for SqlQueryRegistry
impl Unpin for SqlQueryRegistry
impl UnsafeUnpin for SqlQueryRegistry
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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