pub struct CellHandle {
pub cell_id: String,
/* private fields */
}Fields§
§cell_id: StringImplementations§
Source§impl CellHandle
impl CellHandle
pub async fn append_event( &self, turn_id: Option<String>, event_type: impl Into<String>, payload: Value, ) -> Result<EventRecord>
pub async fn append_events_batch( &self, requests: Vec<AppendEventRequest>, ) -> Result<Vec<EventRecord>>
pub async fn export(&self) -> Result<CellExport>
pub async fn get_events( &self, since_seq: Option<i64>, limit: Option<i64>, ) -> Result<Vec<EventRecord>>
pub async fn get_messages(&self) -> Result<Vec<Message>>
pub async fn get_meta(&self) -> Result<CellMeta>
pub async fn set_kv(&self, key: impl Into<String>, value: Value) -> Result<()>
pub async fn get_kv(&self, key: impl Into<String>) -> Result<Option<Value>>
pub async fn list_kv(&self) -> Result<HashMap<String, Value>>
pub async fn create_checkpoint( &self, label: impl Into<String>, ) -> Result<CheckpointRecord>
pub async fn restore_checkpoint( &self, checkpoint_id: impl Into<String>, ) -> Result<i64>
pub async fn checkpoint_wal(&self) -> Result<()>
pub async fn backup(&self) -> Result<Vec<u8>>
pub async fn fence(&self)
pub async fn idle_duration(&self) -> Result<Duration>
pub async fn shutdown(&self)
pub fn subscribe(&self) -> Receiver<EventRecord>
Trait Implementations§
Source§impl Clone for CellHandle
impl Clone for CellHandle
Source§fn clone(&self) -> CellHandle
fn clone(&self) -> CellHandle
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 moreAuto Trait Implementations§
impl Freeze for CellHandle
impl RefUnwindSafe for CellHandle
impl Send for CellHandle
impl Sync for CellHandle
impl Unpin for CellHandle
impl UnsafeUnpin for CellHandle
impl UnwindSafe for CellHandle
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more