pub struct ReaderHandle { /* private fields */ }Expand description
The &self port roles: Attached, Clock, SignalReader,
FixedReader, and the two signal extensions.
It is Send + Sync, so several threads may hold one and read at once, and
a face that needs only SignalReader can be built over this handle
directly rather than over the aggregate.
Trait Implementations§
Source§impl Attached for ReaderHandle
impl Attached for ReaderHandle
Source§fn catalog(&self) -> &CatalogRef
fn catalog(&self) -> &CatalogRef
The catalog this port serves.
Source§impl Clock for ReaderHandle
impl Clock for ReaderHandle
Source§impl CoherentSignals for ReaderHandle
impl CoherentSignals for ReaderHandle
Source§fn read_coherent(
&self,
iface: InterfaceNo,
ords: &[Ordinal],
out: &mut [u8],
samples: &mut [RawSample],
) -> Result<usize, ReadError>
fn read_coherent( &self, iface: InterfaceNo, ords: &[Ordinal], out: &mut [u8], samples: &mut [RawSample], ) -> Result<usize, ReadError>
Answers every ordinal in
ords from one publication. Copies the values
into out one after another, writes one RawSample for each ordinal
into samples in the order of ords, and returns the number of bytes
written to out. Read moreSource§impl FixedReader for ReaderHandle
impl FixedReader for ReaderHandle
Source§fn read_fixed(
&self,
iface: InterfaceNo,
ord: Ordinal,
out: &mut [u8],
) -> Result<usize, ReadError>
fn read_fixed( &self, iface: InterfaceNo, ord: Ordinal, out: &mut [u8], ) -> Result<usize, ReadError>
Copies the provisioned value into the front of
out and returns its
length.Source§impl ScannableSignals for ReaderHandle
impl ScannableSignals for ReaderHandle
Source§fn generation(&self, iface: InterfaceNo) -> u64
fn generation(&self, iface: InterfaceNo) -> u64
The interface’s generation: a counter that each commit to the interface
increments. Read more
Source§fn scan(&self, marks: &mut [Watermark], out: &mut [Changed]) -> usize
fn scan(&self, marks: &mut [Watermark], out: &mut [Changed]) -> usize
Writes the changes into
out, interface by interface, in the order of
marks, and updates marks. An interface’s changes are written all
together or not at all: when they do not fit in the rest of out,
none of them is written, that interface’s mark is not updated, and
scan returns the number of entries written so far. Read moreSource§impl SignalReader for ReaderHandle
impl SignalReader for ReaderHandle
Auto Trait Implementations§
impl Freeze for ReaderHandle
impl RefUnwindSafe for ReaderHandle
impl Send for ReaderHandle
impl Sync for ReaderHandle
impl Unpin for ReaderHandle
impl UnsafeUnpin for ReaderHandle
impl UnwindSafe for ReaderHandle
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