pub struct RecordFieldSource { /* private fields */ }Expand description
A read-only Source serving <pvname>.<FIELD> channels derived from
the records in a SimplePvStore.
Registered by PvaServer::run after the builtin store; the builtin only
claims exact record names, so the two never compete.
Implementations§
Source§impl RecordFieldSource
impl RecordFieldSource
pub fn new(store: Arc<SimplePvStore>) -> Self
Trait Implementations§
Source§impl Source for RecordFieldSource
impl Source for RecordFieldSource
Source§fn claim(
&self,
name: &str,
) -> Pin<Box<dyn Future<Output = Option<PvInfo>> + Send + '_>>
fn claim( &self, name: &str, ) -> Pin<Box<dyn Future<Output = Option<PvInfo>> + Send + '_>>
Check whether this source owns
name and, if so, return its metadata. Read moreSource§fn get(
&self,
name: &str,
) -> Pin<Box<dyn Future<Output = Option<NtPayload>> + Send + '_>>
fn get( &self, name: &str, ) -> Pin<Box<dyn Future<Output = Option<NtPayload>> + Send + '_>>
Read the current value of a PV. Read more
Source§fn put(
&self,
name: &str,
_value: &DecodedValue,
) -> Pin<Box<dyn Future<Output = Result<Vec<(String, NtPayload)>, String>> + Send + '_>>
fn put( &self, name: &str, _value: &DecodedValue, ) -> Pin<Box<dyn Future<Output = Result<Vec<(String, NtPayload)>, String>> + Send + '_>>
Apply a PUT value to a PV. Read more
Source§fn subscribe(
&self,
name: &str,
) -> Pin<Box<dyn Future<Output = Option<Receiver<NtPayload>>> + Send + '_>>
fn subscribe( &self, name: &str, ) -> Pin<Box<dyn Future<Output = Option<Receiver<NtPayload>>> + Send + '_>>
Subscribe to value-change notifications on a PV. Read more
Auto Trait Implementations§
impl !Freeze for RecordFieldSource
impl !RefUnwindSafe for RecordFieldSource
impl !UnwindSafe for RecordFieldSource
impl Send for RecordFieldSource
impl Sync for RecordFieldSource
impl Unpin for RecordFieldSource
impl UnsafeUnpin for RecordFieldSource
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