pub struct AsyncUmaDbClient { /* private fields */ }Implementations§
Source§impl AsyncUmaDbClient
impl AsyncUmaDbClient
pub async fn subscribe( &self, query: Option<DcbQuery>, after: Option<u64>, ) -> DcbResult<Box<dyn DcbSubscriptionAsync + Send + 'static>>
pub async fn connect( url: String, ca_path: Option<String>, batch_size: Option<u32>, api_key: Option<String>, ) -> DcbResult<Self>
pub async fn connect_with_tls_options( url: String, tls_options: Option<ClientTlsOptions>, batch_size: Option<u32>, api_key: Option<String>, ) -> DcbResult<Self>
pub async fn register_cancel_sigint_handler(&self)
Trait Implementations§
Source§impl DcbEventStoreAsync for AsyncUmaDbClient
impl DcbEventStoreAsync for AsyncUmaDbClient
Source§fn read<'a, 'async_trait>(
&'a self,
query: Option<DcbQuery>,
start: Option<u64>,
backwards: bool,
limit: Option<u32>,
subscribe: bool,
) -> Pin<Box<dyn Future<Output = DcbResult<Box<dyn DcbReadResponseAsync + Send + 'static>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
fn read<'a, 'async_trait>(
&'a self,
query: Option<DcbQuery>,
start: Option<u64>,
backwards: bool,
limit: Option<u32>,
subscribe: bool,
) -> Pin<Box<dyn Future<Output = DcbResult<Box<dyn DcbReadResponseAsync + Send + 'static>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
Reads events from the store based on the provided query and constraints Read more
Source§fn head<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = DcbResult<Option<u64>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn head<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = DcbResult<Option<u64>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Returns the current head position of the event store, or None if empty Read more
Source§fn get_tracking_info<'life0, 'life1, 'async_trait>(
&'life0 self,
source: &'life1 str,
) -> Pin<Box<dyn Future<Output = DcbResult<Option<u64>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_tracking_info<'life0, 'life1, 'async_trait>(
&'life0 self,
source: &'life1 str,
) -> Pin<Box<dyn Future<Output = DcbResult<Option<u64>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Returns the greatest recorded upstream position for a tracking source, if any
Source§fn append<'life0, 'async_trait>(
&'life0 self,
events: Vec<DcbEvent>,
condition: Option<DcbAppendCondition>,
tracking_info: Option<TrackingInfo>,
) -> Pin<Box<dyn Future<Output = DcbResult<u64>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn append<'life0, 'async_trait>(
&'life0 self,
events: Vec<DcbEvent>,
condition: Option<DcbAppendCondition>,
tracking_info: Option<TrackingInfo>,
) -> Pin<Box<dyn Future<Output = DcbResult<u64>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Appends given events to the event store, unless the condition fails Read more
Source§fn read_with_head<'a, 'async_trait>(
&'a self,
query: Option<DcbQuery>,
after: Option<u64>,
backwards: bool,
limit: Option<u32>,
) -> Pin<Box<dyn Future<Output = Result<(Vec<DcbSequencedEvent>, Option<u64>), DcbError>> + Send + 'async_trait>>where
'a: 'async_trait,
Self: 'async_trait,
fn read_with_head<'a, 'async_trait>(
&'a self,
query: Option<DcbQuery>,
after: Option<u64>,
backwards: bool,
limit: Option<u32>,
) -> Pin<Box<dyn Future<Output = Result<(Vec<DcbSequencedEvent>, Option<u64>), DcbError>> + Send + 'async_trait>>where
'a: 'async_trait,
Self: 'async_trait,
Reads events from the store and returns them as a tuple of
(Vec<DcbSequencedEvent>, Option<u64>)Auto Trait Implementations§
impl !Freeze for AsyncUmaDbClient
impl !RefUnwindSafe for AsyncUmaDbClient
impl Send for AsyncUmaDbClient
impl Sync for AsyncUmaDbClient
impl Unpin for AsyncUmaDbClient
impl UnsafeUnpin for AsyncUmaDbClient
impl !UnwindSafe for AsyncUmaDbClient
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
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request