pub struct EventReader { /* private fields */ }Expand description
A one-at-a-time reader of an existing module-owned EVENT durable.
The server owns its cursor. Re-issue rebinds the reader to the same durable;
unacknowledged messages may redeliver. Keep the BusClient alive so its
credential maintenance continues to run.
Implementations§
Source§impl EventReader
impl EventReader
Sourcepub async fn next(&mut self) -> Result<EventItem>
pub async fn next(&mut self) -> Result<EventItem>
Pulls one event, rebinding after credential re-issue if necessary. This never acknowledges a message. Commit before acknowledging a valid delivery; log and terminate a malformed record instead of retrying it. A closed connection-change stream reports a transport error so the caller can reconnect the client or report degraded credential maintenance.
Auto Trait Implementations§
impl !RefUnwindSafe for EventReader
impl !UnwindSafe for EventReader
impl Forget for EventReader
impl Freeze for EventReader
impl Move for EventReader
impl Send for EventReader
impl Sync for EventReader
impl Unpin for EventReader
impl UnsafeUnpin for EventReader
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