pub struct DynamicIngestClient { /* private fields */ }
Expand description
A more dynamic ingest client, for places where the session types are difficult to use.
Implementations§
Source§impl DynamicIngestClient
impl DynamicIngestClient
pub async fn declare_attr_key( &mut self, key_name: String, ) -> Result<InternedAttrKey, IngestError>
pub async fn open_timeline(&mut self, id: TimelineId) -> Result<(), IngestError>
pub fn close_timeline(&mut self)
pub async fn timeline_metadata( &mut self, attrs: impl IntoIterator<Item = (InternedAttrKey, AttrVal)>, ) -> Result<(), DynamicIngestError>
pub async fn event( &mut self, ordering: u128, attrs: impl IntoIterator<Item = (InternedAttrKey, AttrVal)>, ) -> Result<(), DynamicIngestError>
Trait Implementations§
Source§impl From<IngestClient<BoundTimelineState>> for DynamicIngestClient
impl From<IngestClient<BoundTimelineState>> for DynamicIngestClient
Source§fn from(c: IngestClient<BoundTimelineState>) -> Self
fn from(c: IngestClient<BoundTimelineState>) -> Self
Converts to this type from the input type.
Source§impl From<IngestClient<ReadyState>> for DynamicIngestClient
impl From<IngestClient<ReadyState>> for DynamicIngestClient
Source§fn from(c: IngestClient<ReadyState>) -> Self
fn from(c: IngestClient<ReadyState>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for DynamicIngestClient
impl RefUnwindSafe for DynamicIngestClient
impl Send for DynamicIngestClient
impl Sync for DynamicIngestClient
impl Unpin for DynamicIngestClient
impl UnwindSafe for DynamicIngestClient
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