pub enum SubscriptionReceiver {
Fanout(Receiver<Arc<EventEnvelope>>),
QueueGroup(Receiver<Arc<EventEnvelope>>),
}Expand description
Receiver returned by super::broker::BrokerEngine::subscribe.
Variants§
Fanout(Receiver<Arc<EventEnvelope>>)
Fanout: receives all messages via broadcast (zero-copy fan-out).
QueueGroup(Receiver<Arc<EventEnvelope>>)
Queue group: receives messages via round-robin mpsc.
Auto Trait Implementations§
impl Freeze for SubscriptionReceiver
impl !RefUnwindSafe for SubscriptionReceiver
impl Send for SubscriptionReceiver
impl Sync for SubscriptionReceiver
impl Unpin for SubscriptionReceiver
impl UnsafeUnpin for SubscriptionReceiver
impl !UnwindSafe for SubscriptionReceiver
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request