pub struct RemoteSignal { /* private fields */ }Expand description
The recording a Session has open, behind SignalBackend.
Implementations§
Source§impl RemoteSignal
impl RemoteSignal
Sourcepub fn new(session: Arc<Session>, handle: Handle) -> Result<Self, StreamError>
pub fn new(session: Arc<Session>, handle: Handle) -> Result<Self, StreamError>
The recording session has open; calls run on handle (the runtime that drives the
session’s connection).
Sourcepub fn source(&self) -> Arc<RemoteSource> ⓘ
pub fn source(&self) -> Arc<RemoteSource> ⓘ
The same recording as a RecordingSource (sample reads), sharing the session.
Trait Implementations§
Source§impl SignalBackend for RemoteSignal
impl SignalBackend for RemoteSignal
Source§fn read(
&self,
channels: &[usize],
samples: Range<u64>,
out: &mut [f32],
) -> DspResult<()>
fn read( &self, channels: &[usize], samples: Range<u64>, out: &mut [f32], ) -> DspResult<()>
Samples of channels, channel-major (through RemoteSource).
Source§fn info(&self) -> &RecordingInfo
fn info(&self) -> &RecordingInfo
The recording’s description (channels, samples, exact rate and start, units).
Source§fn view(&self, view: &View, out: &mut Envelope) -> DspResult<()>
fn view(&self, view: &View, out: &mut Envelope) -> DspResult<()>
The contents of
view into out (its buffer is reused). Zoomed-out columns not built yet
are NaN and complete is false: ask again after Self::watch reports progress.Source§fn prepare(&self, _start: u64, _end: u64) -> DspResult<()>
fn prepare(&self, _start: u64, _end: u64) -> DspResult<()>
Prepares the zoomed-out data of samples
start..end now, blocking until it is ready (for
a single exact image, e.g. a snapshot; viewers use Self::focus).Source§fn progress(&self) -> Progress
fn progress(&self) -> Progress
Samples whose zoomed-out data is ready, of all (
done == total once complete).Source§fn watch(&self, on_progress: OnProgress)
fn watch(&self, on_progress: OnProgress)
Calls
on_progress whenever more zoomed-out data is ready.Auto Trait Implementations§
impl !RefUnwindSafe for RemoteSignal
impl !UnwindSafe for RemoteSignal
impl Forget for RemoteSignal
impl Freeze for RemoteSignal
impl Move for RemoteSignal
impl Send for RemoteSignal
impl Sync for RemoteSignal
impl Unpin for RemoteSignal
impl UnsafeUnpin for RemoteSignal
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more