pub struct StreamRefProtoConsumer<T>where
T: StreamRefPayload,{ /* private fields */ }Expand description
Consumer-side endpoint that exposes inbound remote elements as a local
Source.
The source sends OnSubscribeHandshake and a cumulative demand ceiling when
it is materialized. It then refills demand at half the configured buffer.
Implementations§
Source§impl<T> StreamRefProtoConsumer<T>where
T: StreamRefPayload,
impl<T> StreamRefProtoConsumer<T>where
T: StreamRefPayload,
pub fn new(stream_ref_id: StreamRefId, settings: StreamRefSettings) -> Self
pub fn source(&self) -> Source<T, NotUsed>
Trait Implementations§
Source§impl<T> Clone for StreamRefProtoConsumer<T>where
T: StreamRefPayload,
impl<T> Clone for StreamRefProtoConsumer<T>where
T: StreamRefPayload,
Source§impl<T> StreamRefProtoEndpoint for StreamRefProtoConsumer<T>where
T: StreamRefPayload,
impl<T> StreamRefProtoEndpoint for StreamRefProtoConsumer<T>where
T: StreamRefPayload,
fn stream_ref_id(&self) -> StreamRefId
fn next_frame(&self) -> Option<StreamResult<StreamRefFrame>>
fn handle_frame(&self, frame: StreamRefFrame) -> StreamResult<()>
fn fail_connection(&self, error: StreamError)
Auto Trait Implementations§
impl<T> Freeze for StreamRefProtoConsumer<T>
impl<T> RefUnwindSafe for StreamRefProtoConsumer<T>
impl<T> Send for StreamRefProtoConsumer<T>
impl<T> Sync for StreamRefProtoConsumer<T>
impl<T> Unpin for StreamRefProtoConsumer<T>
impl<T> UnsafeUnpin for StreamRefProtoConsumer<T>
impl<T> UnwindSafe for StreamRefProtoConsumer<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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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