pub enum AttachError {
SnapshotFailed(String),
SubscribeFailed(String),
NoSuchEntity(String),
Transport(String),
}Expand description
Errors that can occur during an attach lifecycle.
Distinct from per-consumer errors (producer disconnect, malformed
frame, etc.) which surface through the consumer’s consume impl
and are not engate’s concern.
Variants§
SnapshotFailed(String)
The producer’s snapshot operation failed. Engate cannot reach
Synced without a snapshot.
SubscribeFailed(String)
Subscribing to the live stream failed.
NoSuchEntity(String)
The producer reports the requested entity does not exist.
Transport(String)
Generic transport / I/O error during attach.
Trait Implementations§
Source§impl Debug for AttachError
impl Debug for AttachError
Source§impl<'de> Deserialize<'de> for AttachError
impl<'de> Deserialize<'de> for AttachError
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 AttachError
impl Display for AttachError
Source§impl Error for AttachError
impl Error for AttachError
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()
Auto Trait Implementations§
impl Freeze for AttachError
impl RefUnwindSafe for AttachError
impl Send for AttachError
impl Sync for AttachError
impl Unpin for AttachError
impl UnsafeUnpin for AttachError
impl UnwindSafe for AttachError
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