pub struct LocalConcurrentModificationError { /* private fields */ }Expand description
Concurrent modification error — the consumer was accessed from more than one task.
Corresponds to Java’s java.util.ConcurrentModificationException, thrown
by KafkaConsumer.acquire() (“KafkaConsumer is not safe for
multi-threaded access”). A plain RuntimeException, so no predicate
holds for it.
Implementations§
Source§impl LocalConcurrentModificationError
impl LocalConcurrentModificationError
Sourcepub fn new(message: impl Into<String>) -> Self
pub fn new(message: impl Into<String>) -> Self
Create the error with the given message and no cause,
mirroring the (String message) constructor.
Keeps the plain name under CLAUDE.md §2, for consistency with
kafka_error_type! — see the note on this macro about the
constructors these classes deliberately do not model.
(Deliberately not an intra-doc link: this doc comment expands
into each declaring module, where that macro is not in scope.)
Trait Implementations§
Source§impl Clone for LocalConcurrentModificationError
impl Clone for LocalConcurrentModificationError
Source§fn clone(&self) -> LocalConcurrentModificationError
fn clone(&self) -> LocalConcurrentModificationError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Error for LocalConcurrentModificationError
impl Error for LocalConcurrentModificationError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for LocalConcurrentModificationError
impl RefUnwindSafe for LocalConcurrentModificationError
impl Send for LocalConcurrentModificationError
impl Sync for LocalConcurrentModificationError
impl Unpin for LocalConcurrentModificationError
impl UnsafeUnpin for LocalConcurrentModificationError
impl UnwindSafe for LocalConcurrentModificationError
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