pub struct IngestState<I> {
pub ingest: Arc<I>,
pub limits: IngestLimits,
pub ready: Arc<AtomicBool>,
pub notifier: Option<Arc<dyn StreamNotifier>>,
}Expand description
State for an ingest-only service.
Fields§
§ingest: Arc<I>Backend used for writes.
limits: IngestLimitsLimits enforced before writes reach the backend.
ready: Arc<AtomicBool>Gates ingest writes only.
notifier: Option<Arc<dyn StreamNotifier>>Optional live-stream notifier.
Implementations§
Source§impl<I> IngestState<I>where
I: Ingest,
impl<I> IngestState<I>where
I: Ingest,
pub fn new(ingest: Arc<I>) -> Self
pub fn with_notifier(ingest: Arc<I>, notifier: Arc<dyn StreamNotifier>) -> Self
pub fn with_limits(self, limits: IngestLimits) -> Self
Trait Implementations§
Source§impl<I> Clone for IngestState<I>
impl<I> Clone for IngestState<I>
Auto Trait Implementations§
impl<I> Freeze for IngestState<I>
impl<I> !RefUnwindSafe for IngestState<I>
impl<I> Send for IngestState<I>
impl<I> Sync for IngestState<I>
impl<I> Unpin for IngestState<I>
impl<I> UnsafeUnpin for IngestState<I>
impl<I> !UnwindSafe for IngestState<I>
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