pub struct StreamState<L> {
pub log: Arc<L>,
pub notifier: Arc<dyn StreamNotifier>,
}Expand description
State for a stream-only service.
Fields§
§log: Arc<L>Backend used to load committed batches.
notifier: Arc<dyn StreamNotifier>In-process notifier used to wake subscribers after new batches commit.
Implementations§
Source§impl<L> StreamState<L>where
L: Log,
impl<L> StreamState<L>where
L: Log,
pub fn new(log: Arc<L>, notifier: Arc<dyn StreamNotifier>) -> Self
Trait Implementations§
Source§impl<L> Clone for StreamState<L>
impl<L> Clone for StreamState<L>
Auto Trait Implementations§
impl<L> Freeze for StreamState<L>
impl<L> !RefUnwindSafe for StreamState<L>
impl<L> Send for StreamState<L>
impl<L> Sync for StreamState<L>
impl<L> Unpin for StreamState<L>
impl<L> UnsafeUnpin for StreamState<L>
impl<L> !UnwindSafe for StreamState<L>
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