pub struct StreamSubscription { /* private fields */ }Expand description
Async stream of StreamSubscriptionFrame. Backed by the generated
connectrpc server stream.
Implementations§
Source§impl StreamSubscription
impl StreamSubscription
Sourcepub async fn next(
&mut self,
) -> Result<Option<StreamSubscriptionFrame>, ClientError>
pub async fn next( &mut self, ) -> Result<Option<StreamSubscriptionFrame>, ClientError>
Pull the next frame. Ok(None) = server closed the stream cleanly.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StreamSubscription
impl !RefUnwindSafe for StreamSubscription
impl Send for StreamSubscription
impl Sync for StreamSubscription
impl Unpin for StreamSubscription
impl UnsafeUnpin for StreamSubscription
impl !UnwindSafe for StreamSubscription
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