pub struct CorrosionApiClient { /* private fields */ }Implementations§
Source§impl CorrosionApiClient
impl CorrosionApiClient
pub fn new(api_addr: SocketAddr) -> Self
pub async fn query(&self, statement: &Statement) -> Result<Body, Error>
pub async fn watch( &self, statement: &Statement, ) -> Result<(Uuid, impl Stream<Item = Result<QueryEvent>>), Error>
pub async fn watched_query( &self, id: Uuid, ) -> Result<impl Stream<Item = Result<QueryEvent>>, Error>
pub async fn execute( &self, statements: &[Statement], ) -> Result<RqliteResponse, Error>
pub async fn schema( &self, statements: &[Statement], ) -> Result<RqliteResponse, Error>
pub async fn schema_from_paths<P: AsRef<Path>>( &self, schema_paths: &[P], ) -> Result<RqliteResponse, Error>
Trait Implementations§
Source§impl Clone for CorrosionApiClient
impl Clone for CorrosionApiClient
Source§fn clone(&self) -> CorrosionApiClient
fn clone(&self) -> CorrosionApiClient
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 Freeze for CorrosionApiClient
impl !RefUnwindSafe for CorrosionApiClient
impl Send for CorrosionApiClient
impl Sync for CorrosionApiClient
impl Unpin for CorrosionApiClient
impl !UnwindSafe for CorrosionApiClient
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