pub trait ScanViewService:
Send
+ Sync
+ Debug {
// Required methods
fn state(&self, view: BufferId) -> Option<Arc<RwLock<ScanViewState>>>;
fn set_state(&self, view: BufferId, state: ScanViewState);
fn clear(&self, view: BufferId);
}Expand description
Per-view state, shared between the trigger and the scan task.
Required Methods§
fn state(&self, view: BufferId) -> Option<Arc<RwLock<ScanViewState>>>
fn set_state(&self, view: BufferId, state: ScanViewState)
fn clear(&self, view: BufferId)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".