pub struct DynamicIngestClient { /* private fields */ }Expand description
A more dynamic ingest client, for places where the session types are difficult to use.
Implementations
sourceimpl 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
sourceimpl From<IngestClient<BoundTimelineState>> for DynamicIngestClient
impl From<IngestClient<BoundTimelineState>> for DynamicIngestClient
sourcefn from(c: IngestClient<BoundTimelineState>) -> Self
fn from(c: IngestClient<BoundTimelineState>) -> Self
Converts to this type from the input type.
sourceimpl From<IngestClient<ReadyState>> for DynamicIngestClient
impl From<IngestClient<ReadyState>> for DynamicIngestClient
sourcefn from(c: IngestClient<ReadyState>) -> Self
fn from(c: IngestClient<ReadyState>) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for DynamicIngestClient
impl Send for DynamicIngestClient
impl Sync for DynamicIngestClient
impl Unpin for DynamicIngestClient
impl UnwindSafe for DynamicIngestClient
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more