pub struct LocalUnsupportedOperationError { /* private fields */ }Expand description
Unsupported operation error — the requested operation is not supported.
Java’s java.lang.UnsupportedOperationException; like
LocalIllegalArgumentError,
outside the KafkaException hierarchy. Not to be confused with
UnsupportedVersionError, Java’s wire-level UnsupportedVersionException
for a broker that lacks an API version.
Implementations§
Source§impl LocalUnsupportedOperationError
impl LocalUnsupportedOperationError
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 LocalUnsupportedOperationError
impl Clone for LocalUnsupportedOperationError
Source§fn clone(&self) -> LocalUnsupportedOperationError
fn clone(&self) -> LocalUnsupportedOperationError
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 LocalUnsupportedOperationError
impl Error for LocalUnsupportedOperationError
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 LocalUnsupportedOperationError
impl RefUnwindSafe for LocalUnsupportedOperationError
impl Send for LocalUnsupportedOperationError
impl Sync for LocalUnsupportedOperationError
impl Unpin for LocalUnsupportedOperationError
impl UnsafeUnpin for LocalUnsupportedOperationError
impl UnwindSafe for LocalUnsupportedOperationError
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