pub struct Topic;Expand description
Reads the source topic name.
Trait Implementations§
Source§impl ContextField for Topic
impl ContextField for Topic
Source§type Context = KafkaContext
type Context = KafkaContext
The per-delivery context type this key reads from.
Source§fn read(self, src: &KafkaContext) -> String
fn read(self, src: &KafkaContext) -> String
Reads this key’s field out of
src. Named apart from Field::get so a key
implementing both traits stays unambiguous to call.impl Copy for Topic
impl Eq for Topic
Source§impl Field<KafkaContext> for Topic
impl Field<KafkaContext> for Topic
impl StructuralPartialEq for Topic
Auto Trait Implementations§
impl Freeze for Topic
impl RefUnwindSafe for Topic
impl Send for Topic
impl Sync for Topic
impl Unpin for Topic
impl UnsafeUnpin for Topic
impl UnwindSafe for Topic
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