pub enum ControllerError {
Show 15 variants
Io(Error),
Raft(String),
NotLeader {
leader_id: Option<u64>,
},
MetadataNotFound {
key: String,
},
InvalidRequest(String),
BrokerRegistrationFailed(String),
NotInitialized(String),
InitializationFailed,
ConfigError(String),
SerializationError(String),
StorageError(String),
NetworkError(String),
Timeout {
timeout_ms: u64,
},
Internal(String),
Shutdown,
}Expand description
Controller module error types
Errors that can occur during controller operations including:
- Raft consensus failures
- Leadership transitions
- Broker registration and metadata management
- Network and serialization issues
Variants§
Io(Error)
IO errors
Raft(String)
Raft consensus errors
NotLeader
Not the leader error
MetadataNotFound
Metadata not found
InvalidRequest(String)
Invalid request
BrokerRegistrationFailed(String)
Broker registration error
NotInitialized(String)
Not initialized error
InitializationFailed
Initialization failed error
ConfigError(String)
Configuration error
SerializationError(String)
Serialization error
StorageError(String)
Storage error
NetworkError(String)
Network error
Timeout
Timeout error
Internal(String)
Internal error
Shutdown
Shutdown error
Trait Implementations§
Source§impl Debug for ControllerError
impl Debug for ControllerError
Source§impl Display for ControllerError
impl Display for ControllerError
Source§impl Error for ControllerError
impl Error for ControllerError
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()
Source§impl From<ControllerError> for RocketMQError
impl From<ControllerError> for RocketMQError
Source§fn from(source: ControllerError) -> Self
fn from(source: ControllerError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ControllerError
impl !RefUnwindSafe for ControllerError
impl Send for ControllerError
impl Sync for ControllerError
impl Unpin for ControllerError
impl UnsafeUnpin for ControllerError
impl !UnwindSafe for ControllerError
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