pub enum DakeraEvent {
NamespaceCreated {
namespace: String,
dimension: usize,
},
NamespaceDeleted {
namespace: String,
},
OperationProgress {
operation_id: String,
namespace: Option<String>,
op_type: String,
progress: u8,
status: OpStatus,
message: Option<String>,
updated_at: u64,
},
JobProgress {
job_id: String,
job_type: String,
namespace: Option<String>,
progress: u8,
status: String,
},
VectorsMutated {
namespace: String,
op: VectorMutationOp,
count: usize,
},
StreamLagged {
dropped: u64,
hint: String,
},
}Expand description
An event received from a Dakera SSE stream.
Mirrors the server-side DakeraEvent enum. Events are delivered over
GET /v1/namespaces/:ns/events (namespace-scoped, Read scope) or
GET /ops/events (global, Admin scope).
Use [DakeraClient::stream_namespace_events] or
[DakeraClient::stream_global_events] to subscribe.
Variants§
NamespaceCreated
A new namespace was created.
NamespaceDeleted
A namespace was deleted.
OperationProgress
Progress update for a long-running operation (progress: 0–100).
Fields
JobProgress
A background job changed status.
VectorsMutated
Vectors were upserted or deleted in bulk (threshold: >100 vectors).
StreamLagged
Subscriber fell too far behind — some events were dropped. Reconnect to resume the stream.
Implementations§
Source§impl DakeraEvent
impl DakeraEvent
Sourcepub fn event_type(&self) -> &'static str
pub fn event_type(&self) -> &'static str
Returns the SSE event type string for this event variant.
Trait Implementations§
Source§impl Clone for DakeraEvent
impl Clone for DakeraEvent
Source§fn clone(&self) -> DakeraEvent
fn clone(&self) -> DakeraEvent
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 Debug for DakeraEvent
impl Debug for DakeraEvent
Source§impl<'de> Deserialize<'de> for DakeraEvent
impl<'de> Deserialize<'de> for DakeraEvent
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
Auto Trait Implementations§
impl Freeze for DakeraEvent
impl RefUnwindSafe for DakeraEvent
impl Send for DakeraEvent
impl Sync for DakeraEvent
impl Unpin for DakeraEvent
impl UnsafeUnpin for DakeraEvent
impl UnwindSafe for DakeraEvent
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