pub struct StreamActor { /* private fields */ }Expand description
An actor that forwards the items of a stream to its parent as events named item_event,
one per turn, and completes when the stream ends.
Implementations§
Source§impl StreamActor
impl StreamActor
Sourcepub fn new(
address: Address,
item_event: impl Into<String>,
stream: ActorStream,
) -> Self
pub fn new( address: Address, item_event: impl Into<String>, stream: ActorStream, ) -> Self
An actor at address forwarding stream.
Sourcepub fn invokable<F>(item_event: &str, f: F) -> ActorFactory
pub fn invokable<F>(item_event: &str, f: F) -> ActorFactory
The factory of an invokable stream: f opens the stream from the invoke’s parameters.
Trait Implementations§
Source§impl Actor for StreamActor
impl Actor for StreamActor
Auto Trait Implementations§
impl !RefUnwindSafe for StreamActor
impl !UnwindSafe for StreamActor
impl Forget for StreamActor
impl Freeze for StreamActor
impl Move for StreamActor
impl Send for StreamActor
impl Sync for StreamActor
impl Unpin for StreamActor
impl UnsafeUnpin for StreamActor
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