mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
@@ -0,0 +1,12 @@
|
||||
use std::sync::Arc;
|
||||
|
||||
use super::Capture;
|
||||
|
||||
/// Capture instance scope guard.
|
||||
pub struct Guard {
|
||||
pub(super) capture: Arc<Capture>,
|
||||
}
|
||||
|
||||
impl Drop for Guard {
|
||||
fn drop(&mut self) { self.capture.stop(); }
|
||||
}
|
||||
Reference in New Issue
Block a user