pub struct Stream<Signal> { /* private fields */ }Expand description
Typed Rust declaration façade compiled into stable dynamic signal, schema, port, and RouteSettings. This wrapper carries no frames and is not a generic runtime queue.
Implementations§
Source§impl<Signal: StreamSignal> Stream<Signal>
impl<Signal: StreamSignal> Stream<Signal>
pub fn from_stem(stem: StemHandle) -> Result<Self, TypedStreamError>
Sourcepub fn from_source_output(
output: SourceOutputHandle,
) -> Result<Self, TypedStreamError>
pub fn from_source_output( output: SourceOutputHandle, ) -> Result<Self, TypedStreamError>
Wraps a public external-source output in the same typed Rust façade.
Runtime identity remains the output’s stable SignalSpec and schema.
pub const fn signal_spec(&self) -> &SignalSpec
pub fn through<Output: StreamSignal>( self, operator: TypedOperator<Signal, Output>, ) -> Result<Stream<Output>, TypedStreamError>
pub fn send( &self, endpoint: EndpointHandle, ) -> Result<RouteId, TypedStreamError>
Trait Implementations§
Auto Trait Implementations§
impl<Signal> Forget for Stream<Signal>
impl<Signal> Freeze for Stream<Signal>
impl<Signal> RefUnwindSafe for Stream<Signal>
impl<Signal> Send for Stream<Signal>
impl<Signal> Sync for Stream<Signal>
impl<Signal> Unpin for Stream<Signal>
impl<Signal> UnsafeUnpin for Stream<Signal>
impl<Signal> UnwindSafe for Stream<Signal>
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