pub struct FlightClient { /* private fields */ }Expand description
Flight client for fetching geospatial data.
Implementations§
Source§impl FlightClient
impl FlightClient
Sourcepub async fn get_data(&mut self, ticket: String) -> Result<Vec<RecordBatch>>
pub async fn get_data(&mut self, ticket: String) -> Result<Vec<RecordBatch>>
Fetch data from the server using a ticket.
Sourcepub async fn put_data(&mut self, batches: Vec<RecordBatch>) -> Result<()>
pub async fn put_data(&mut self, batches: Vec<RecordBatch>) -> Result<()>
Send data to the server.
Sourcepub async fn do_action(
&mut self,
action_type: String,
body: Bytes,
) -> Result<Vec<Bytes>>
pub async fn do_action( &mut self, action_type: String, body: Bytes, ) -> Result<Vec<Bytes>>
Execute an action on the server.
Sourcepub async fn list_tickets(&mut self) -> Result<Vec<String>>
pub async fn list_tickets(&mut self) -> Result<Vec<String>>
List all available tickets.
Sourcepub async fn remove_ticket(&mut self, ticket: String) -> Result<()>
pub async fn remove_ticket(&mut self, ticket: String) -> Result<()>
Remove a ticket from the server.
Sourcepub async fn health_check(&mut self) -> Result<bool>
pub async fn health_check(&mut self) -> Result<bool>
Check if the client is connected.
Auto Trait Implementations§
impl !Freeze for FlightClient
impl !RefUnwindSafe for FlightClient
impl Send for FlightClient
impl Sync for FlightClient
impl Unpin for FlightClient
impl UnsafeUnpin for FlightClient
impl !UnwindSafe for FlightClient
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