pub struct Stream<'a> { /* private fields */ }Implementations§
Source§impl<'a> Stream<'a>
impl<'a> Stream<'a>
Sourcepub async fn subscribe(
&self,
filter: StreamFilter,
since_sequence_number: Option<u64>,
) -> Result<StreamSubscription, ClientError>
pub async fn subscribe( &self, filter: StreamFilter, since_sequence_number: Option<u64>, ) -> Result<StreamSubscription, ClientError>
store.stream.v1.Service.Subscribe — see StreamSubscription::next
for consuming delivered frames. since_sequence_number = None starts
live from the next Put; Some(N) replays retained batches before
transitioning to live. An evicted since returns a
ConnectError::out_of_range carrying ErrorInfo.reason = "BATCH_EVICTED".
Trait Implementations§
impl<'a> Copy for Stream<'a>
Auto Trait Implementations§
impl<'a> Freeze for Stream<'a>
impl<'a> !RefUnwindSafe for Stream<'a>
impl<'a> Send for Stream<'a>
impl<'a> Sync for Stream<'a>
impl<'a> Unpin for Stream<'a>
impl<'a> UnsafeUnpin for Stream<'a>
impl<'a> !UnwindSafe for Stream<'a>
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