pub struct StaticSource { /* private fields */ }Expand description
A static source for organising collections of PVs
StaticSource allows grouping related PVs together with common configuration and management.
§Example
ⓘ
use pvxs_sys::{StaticSource, SharedPV};
// Note: This example uses internal APIs
// Use Server::create_pv_* methods for public API
let mut source = StaticSource::create()?;
let mut temp_pv = SharedPV::create_readonly()?;
// temp_pv.open_double(23.5)?; // Internal API
source.add_pv("temperature", &mut temp_pv)?;
// Add source to server with priority 0
// server.add_source("sensors", &mut source, 0)?;Implementations§
Auto Trait Implementations§
impl Freeze for StaticSource
impl RefUnwindSafe for StaticSource
impl !Send for StaticSource
impl !Sync for StaticSource
impl Unpin for StaticSource
impl UnsafeUnpin for StaticSource
impl UnwindSafe for StaticSource
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