pub struct GroupEngineError { /* private fields */ }Implementations§
Source§impl GroupEngineError
impl GroupEngineError
pub fn new(message: impl Into<String>) -> 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 forward_to_leader( message: impl Into<String>, node_id: Option<u64>, address: Option<String>, ) -> Self
pub fn from_replicated_parts( message: impl Into<String>, code: Option<StreamErrorCode>, next_offset: Option<u64>, leader_hint: Option<GroupLeaderHint>, ) -> Self
pub fn message(&self) -> &str
pub fn code(&self) -> Option<StreamErrorCode>
pub fn next_offset(&self) -> Option<u64>
pub fn leader_hint(&self) -> Option<&GroupLeaderHint>
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
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 Eq 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