pub struct PySourceAdapter { /* private fields */ }Implementations§
Source§impl PySourceAdapter
impl PySourceAdapter
pub fn new(obj: PyObject) -> Self
Sourcepub fn invoke_on_start(&self, notifier: PyNotifier)
pub fn invoke_on_start(&self, notifier: PyNotifier)
If the user’s Python object has an on_start(notifier) method, call it.
Trait Implementations§
Source§impl Source for PySourceAdapter
impl Source for PySourceAdapter
Source§fn claim<'a>(
&'a self,
name: &str,
) -> Pin<Box<dyn Future<Output = Option<PvInfo>> + Send + 'a>>
fn claim<'a>( &'a self, name: &str, ) -> Pin<Box<dyn Future<Output = Option<PvInfo>> + Send + 'a>>
Check whether this source owns
name and, if so, return its metadata. Read moreSource§fn get<'a>(
&'a self,
name: &str,
) -> Pin<Box<dyn Future<Output = Option<NtPayload>> + Send + 'a>>
fn get<'a>( &'a self, name: &str, ) -> Pin<Box<dyn Future<Output = Option<NtPayload>> + Send + 'a>>
Read the current value of a PV. Read more
Source§fn put<'a>(
&'a self,
name: &str,
value: &DecodedValue,
) -> Pin<Box<dyn Future<Output = Result<Vec<(String, NtPayload)>, String>> + Send + 'a>>
fn put<'a>( &'a self, name: &str, value: &DecodedValue, ) -> Pin<Box<dyn Future<Output = Result<Vec<(String, NtPayload)>, String>> + Send + 'a>>
Apply a PUT value to a PV. Read more
Source§fn subscribe<'a>(
&'a self,
_name: &str,
) -> Pin<Box<dyn Future<Output = Option<Receiver<NtPayload>>> + Send + 'a>>
fn subscribe<'a>( &'a self, _name: &str, ) -> Pin<Box<dyn Future<Output = Option<Receiver<NtPayload>>> + Send + 'a>>
Subscribe to value-change notifications on a PV. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for PySourceAdapter
impl !UnwindSafe for PySourceAdapter
impl Freeze for PySourceAdapter
impl Send for PySourceAdapter
impl Sync for PySourceAdapter
impl Unpin for PySourceAdapter
impl UnsafeUnpin for PySourceAdapter
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