pub struct PvManager { /* private fields */ }Expand description
Creates and shares PV subscriptions.
Implementations§
Source§impl PvManager
impl PvManager
pub fn new() -> Self
Sourcepub fn set_notifier(&self, notifier: Notifier)
pub fn set_notifier(&self, notifier: Notifier)
Register a callback run after every PV change.
Sourcepub fn tagged(&self, notifier: Notifier) -> Self
pub fn tagged(&self, notifier: Notifier) -> Self
A handle to the same PVs that tags each PV subscribed through it with
notifier, called after each change of those PVs (and each new
notice) for as long as this handle or a clone of it is held. A UI
window gives its display one, to repaint only the windows showing a
PV that changed.
Sourcepub fn retagged(&self) -> Self
pub fn retagged(&self) -> Self
A handle with this one’s notifier under a new tag: PVs subscribed through it are tagged afresh, and those subscribed only through this one stop calling the notifier once it and its clones are dropped (a window showing another display).
Sourcepub fn set_read_only(&self, read_only: bool)
pub fn set_read_only(&self, read_only: bool)
Refuse (or allow again) writes to every PV but loc:// ones; PVs then
report themselves not writable, so controls are disabled.
pub fn read_only(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for PvManager
impl !UnwindSafe for PvManager
impl Freeze for PvManager
impl Send for PvManager
impl Sync for PvManager
impl Unpin for PvManager
impl UnsafeUnpin for PvManager
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