Struct eventstore::ProjectionClient
source · pub struct ProjectionClient { /* private fields */ }
Implementations§
source§impl ProjectionClient
impl ProjectionClient
pub fn new(settings: ClientSettings) -> Self
pub fn with_runtime_handle(handle: Handle, settings: ClientSettings) -> Self
pub fn settings(&self) -> &ClientSettings
pub async fn create<Name>( &self, name: Name, query: String, options: &CreateProjectionOptions ) -> Result<()>
pub async fn update<Name>( &self, name: Name, query: String, options: &UpdateProjectionOptions ) -> Result<()>
pub async fn delete<Name>( &self, name: Name, options: &DeleteProjectionOptions ) -> Result<()>
pub async fn get_status<Name>( &self, name: Name, options: &GenericProjectionOptions ) -> Result<Option<ProjectionStatus>>
pub async fn list( &self, options: &GenericProjectionOptions ) -> Result<BoxStream<'_, Result<ProjectionStatus>>>
pub async fn enable<Name>( &self, name: Name, options: &GenericProjectionOptions ) -> Result<()>
pub async fn reset<Name>( &self, name: Name, options: &GenericProjectionOptions ) -> Result<()>
pub async fn disable<Name>( &self, name: Name, options: &GenericProjectionOptions ) -> Result<()>
pub async fn abort<Name>( &self, name: Name, options: &GenericProjectionOptions ) -> Result<()>
pub async fn get_state<Name, A>( &self, name: Name, options: &GetStateProjectionOptions ) -> Result<Result<A>>
pub async fn get_result<Name, A>( &self, name: Name, options: &GetResultProjectionOptions ) -> Result<Result<A>>
pub async fn restart_subsystem( &self, options: &GenericProjectionOptions ) -> Result<()>
Trait Implementations§
source§impl Clone for ProjectionClient
impl Clone for ProjectionClient
source§fn clone(&self) -> ProjectionClient
fn clone(&self) -> ProjectionClient
Returns a copy 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 moreAuto Trait Implementations§
impl !RefUnwindSafe for ProjectionClient
impl Send for ProjectionClient
impl Sync for ProjectionClient
impl Unpin for ProjectionClient
impl !UnwindSafe for ProjectionClient
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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