pub struct TestPublisherProbe<T> { /* private fields */ }Implementations§
Source§impl<T> TestPublisherProbe<T>
impl<T> TestPublisherProbe<T>
pub fn set_timeout(&mut self, timeout: Duration)
pub fn send_next(&self, element: T)
pub fn send_complete(&self)
pub fn send_error(&self, error: StreamError)
Sourcepub fn expect_request(&self) -> usize
pub fn expect_request(&self) -> usize
Waits for one downstream pull and returns the observed demand unit.
In Datum’s current pull model this reports one unit per next() call
from downstream, so it currently returns 1 for each observed demand
event instead of Akka-style batched request(n) totals. Tests must not
assume batching here; later buffering work may change pull granularity.
pub fn expect_cancellation(&self)
Trait Implementations§
Source§impl<T> Drop for TestPublisherProbe<T>
impl<T> Drop for TestPublisherProbe<T>
Auto Trait Implementations§
impl<T> Freeze for TestPublisherProbe<T>
impl<T> RefUnwindSafe for TestPublisherProbe<T>
impl<T> Send for TestPublisherProbe<T>where
T: Send,
impl<T> Sync for TestPublisherProbe<T>where
T: Send,
impl<T> Unpin for TestPublisherProbe<T>
impl<T> UnsafeUnpin for TestPublisherProbe<T>
impl<T> UnwindSafe for TestPublisherProbe<T>
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> Message for T
impl<T> Message for T
Source§fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
Convert a BoxedMessage to this concrete type
Source§fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
Convert this message to a BoxedMessage