pub struct ProjectionClient { /* private fields */ }Implementations§
Source§impl ProjectionClient
impl ProjectionClient
pub fn new(settings: ClientSettings) -> Result<Self>
pub fn with_runtime_handle( handle: Handle, settings: ClientSettings, ) -> Result<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 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 ProjectionClient
impl RefUnwindSafe for ProjectionClient
impl Send for ProjectionClient
impl Sync for ProjectionClient
impl Unpin for ProjectionClient
impl UnsafeUnpin 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
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> 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