pub struct StreamingHandlerMetadata {
pub name: &'static str,
pub topic: &'static str,
pub kind: StreamingHandlerKind,
pub group: Option<&'static str>,
pub module_path: &'static str,
}Expand description
Metadata about a streaming handler, submitted to inventory by #[producer]/#[consumer].
Used by resolve_streaming_topic() to look up topic names at runtime.
Fields§
§name: &'static strLogical handler name used for runtime lookup.
topic: &'static strBackend topic name associated with the handler.
kind: StreamingHandlerKindWhether the handler produces or consumes messages.
group: Option<&'static str>Consumer group name for consumers.
module_path: &'static strRust module path where the handler was registered.
Trait Implementations§
impl Collect for StreamingHandlerMetadata
Auto Trait Implementations§
impl Freeze for StreamingHandlerMetadata
impl RefUnwindSafe for StreamingHandlerMetadata
impl Send for StreamingHandlerMetadata
impl Sync for StreamingHandlerMetadata
impl Unpin for StreamingHandlerMetadata
impl UnsafeUnpin for StreamingHandlerMetadata
impl UnwindSafe for StreamingHandlerMetadata
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