pub struct ResourceManager { /* private fields */ }Expand description
Main resource manager
Implementations§
Source§impl ResourceManager
 
impl ResourceManager
pub fn new(config: ResourceConfig) -> Self
pub async fn start_monitoring(&mut self) -> Result<()>
pub async fn acquire_operation_permit(&self) -> Result<SemaphorePermit<'_>>
pub async fn check_brp_rate_limit(&self) -> bool
pub async fn should_sample(&self) -> bool
pub async fn acquire_string(&self) -> String
pub async fn release_string(&self, s: String)
pub async fn acquire_buffer(&self) -> Vec<u8> ⓘ
pub async fn release_buffer(&self, buf: Vec<u8>)
pub async fn record_operation_success(&self)
pub async fn record_operation_failure(&self)
pub async fn get_metrics(&self) -> ResourceMetrics
pub async fn get_performance_dashboard(&self) -> Value
pub async fn implement_graceful_degradation(&self) -> Result<()>
pub async fn shutdown(&mut self) -> Result<()>
Trait Implementations§
Source§impl Debug for ResourceManager
 
impl Debug for ResourceManager
Auto Trait Implementations§
impl !Freeze for ResourceManager
impl !RefUnwindSafe for ResourceManager
impl Send for ResourceManager
impl Sync for ResourceManager
impl Unpin for ResourceManager
impl !UnwindSafe for ResourceManager
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