pub struct StreamingRouter { /* private fields */ }Expand description
Collects producer and consumer handler registrations.
Use the streaming_routes! macro or builder methods to populate.
Implementations§
Source§impl StreamingRouter
impl StreamingRouter
Sourcepub fn producer(self, topic: &'static str, name: &'static str) -> Self
pub fn producer(self, topic: &'static str, name: &'static str) -> Self
Register a producer handler by topic and name.
Sourcepub fn into_handlers(self) -> Vec<StreamingHandlerRegistration>
pub fn into_handlers(self) -> Vec<StreamingHandlerRegistration>
Consume the router and return the registered handlers.
Trait Implementations§
Source§impl Default for StreamingRouter
impl Default for StreamingRouter
Source§fn default() -> StreamingRouter
fn default() -> StreamingRouter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for StreamingRouter
impl !UnwindSafe for StreamingRouter
impl Freeze for StreamingRouter
impl Send for StreamingRouter
impl Sync for StreamingRouter
impl Unpin for StreamingRouter
impl UnsafeUnpin for StreamingRouter
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