pub struct StreamObserver(/* private fields */);Expand description
A shared callback receiving StreamEvents. Cheap to clone. A panic inside it is caught and
dropped; it never reaches the response. It runs inline on the request path (and on the reader
thread for BytesRead), so keep it quick: bump a counter, do not do I/O.
Implementations§
Trait Implementations§
Source§impl Clone for StreamObserver
impl Clone for StreamObserver
Auto Trait Implementations§
impl !RefUnwindSafe for StreamObserver
impl !UnwindSafe for StreamObserver
impl Freeze for StreamObserver
impl Send for StreamObserver
impl Sync for StreamObserver
impl Unpin for StreamObserver
impl UnsafeUnpin for StreamObserver
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