pub struct DataFlowGuard { /* private fields */ }Expand description
Guard that enforces cumulative data flow limits using the session journal.
Reads the journal’s cumulative data flow statistics and denies requests if any configured limit has been reached.
Implementations§
Source§impl DataFlowGuard
impl DataFlowGuard
Sourcepub fn new(journal: Arc<SessionJournal>, config: DataFlowConfig) -> Self
pub fn new(journal: Arc<SessionJournal>, config: DataFlowConfig) -> Self
Create a new guard with the given journal and configuration.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DataFlowGuard
impl RefUnwindSafe for DataFlowGuard
impl Send for DataFlowGuard
impl Sync for DataFlowGuard
impl Unpin for DataFlowGuard
impl UnsafeUnpin for DataFlowGuard
impl UnwindSafe for DataFlowGuard
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