pub struct LiveChangesStream { /* private fields */ }Expand description
A live changes stream that yields change events as they happen.
In live mode, after fetching existing changes, it waits for notifications via a broadcast channel or polls at regular intervals.
Implementations§
Source§impl LiveChangesStream
impl LiveChangesStream
pub fn new( adapter: Arc<dyn Adapter>, receiver: Option<ChangeReceiver>, opts: ChangesStreamOptions, ) -> Self
Sourcepub async fn next_change(&mut self) -> Option<ChangeEvent>
pub async fn next_change(&mut self) -> Option<ChangeEvent>
Get the next change event, blocking if in live mode.
Auto Trait Implementations§
impl Freeze for LiveChangesStream
impl !RefUnwindSafe for LiveChangesStream
impl Send for LiveChangesStream
impl Sync for LiveChangesStream
impl Unpin for LiveChangesStream
impl !UnwindSafe for LiveChangesStream
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