pub(crate) struct StreamGuard {
registry: Arc<StreamRegistry>,
key: StreamKey,
}Expand description
One live stream’s registration. Ends it on drop.
Held by the forwarding task for exactly as long as the stream is
forwarding; see StreamRegistry::register for why the release is a
Drop rather than a call on each teardown path.
Fields§
§registry: Arc<StreamRegistry>§key: StreamKeyTrait Implementations§
Source§impl Drop for StreamGuard
impl Drop for StreamGuard
Auto Trait Implementations§
impl Freeze for StreamGuard
impl RefUnwindSafe for StreamGuard
impl Send for StreamGuard
impl Sync for StreamGuard
impl Unpin for StreamGuard
impl UnsafeUnpin for StreamGuard
impl UnwindSafe for StreamGuard
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