pub enum GroupEngineError {
Stream(StreamEngineError),
Infra(GroupInfraError),
ForwardToLeader {
message: String,
leader_hint: GroupLeaderHint,
},
}Variants§
Implementations§
Source§impl GroupEngineError
impl GroupEngineError
pub fn new(message: impl Into<String>) -> Self
pub fn cold_backpressure( stream_id: BucketStreamId, before_group_hot_bytes: u64, after_group_hot_bytes: u64, limit: u64, ) -> Self
pub fn raft_uncommitted_backpressure( current: u64, incoming: u64, limit: u64, ) -> Self
pub fn stream(code: StreamErrorCode, message: impl Into<String>) -> Self
pub fn stream_with_next_offset( code: StreamErrorCode, message: impl Into<String>, next_offset: Option<u64>, ) -> Self
pub fn stream_with_context( code: StreamErrorCode, message: impl Into<String>, next_offset: Option<u64>, context: Vec<StreamErrorContext>, ) -> Self
pub fn stream_from_replicated( message: impl Into<String>, code: StreamErrorCode, next_offset: Option<u64>, context: Vec<StreamErrorContext>, ) -> Self
pub fn forward_to_leader( message: impl Into<String>, node_id: Option<u64>, address: Option<String>, ) -> Self
pub fn message(&self) -> Cow<'_, str>
pub fn code(&self) -> Option<StreamErrorCode>
pub fn stream_parts( &self, ) -> Option<(&str, StreamErrorCode, Option<u64>, &[StreamErrorContext])>
pub fn next_offset(&self) -> Option<u64>
pub fn context(&self) -> &[StreamErrorContext]
pub fn leader_hint(&self) -> Option<&GroupLeaderHint>
pub fn infra(&self) -> Option<&GroupInfraError>
pub fn is_cold_backpressure(&self) -> bool
pub fn is_backpressure(&self) -> bool
Trait Implementations§
Source§impl Clone for GroupEngineError
impl Clone for GroupEngineError
Source§fn clone(&self) -> GroupEngineError
fn clone(&self) -> GroupEngineError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GroupEngineError
impl Debug for GroupEngineError
Source§impl<'de> Deserialize<'de> for GroupEngineError
impl<'de> Deserialize<'de> for GroupEngineError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for GroupEngineError
impl Display for GroupEngineError
impl Eq for GroupEngineError
Source§impl Error for GroupEngineError
impl Error for GroupEngineError
1.30.0 · 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 PartialEq for GroupEngineError
impl PartialEq for GroupEngineError
Source§fn eq(&self, other: &GroupEngineError) -> bool
fn eq(&self, other: &GroupEngineError) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for GroupEngineError
impl Serialize for GroupEngineError
impl StructuralPartialEq for GroupEngineError
Auto Trait Implementations§
impl Freeze for GroupEngineError
impl RefUnwindSafe for GroupEngineError
impl Send for GroupEngineError
impl Sync for GroupEngineError
impl Unpin for GroupEngineError
impl UnsafeUnpin for GroupEngineError
impl UnwindSafe for GroupEngineError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.