Struct hypersync_client::Client
source · pub struct Client { /* private fields */ }Implementations§
source§impl Client
impl Client
pub fn new(cfg: ClientConfig) -> Result<Self>
pub async fn collect( self: Arc<Self>, query: Query, config: StreamConfig ) -> Result<QueryResponse>
pub async fn collect_events( self: Arc<Self>, query: Query, config: StreamConfig ) -> Result<QueryResponse<Vec<Vec<Event>>>>
pub async fn collect_arrow( self: Arc<Self>, query: Query, config: StreamConfig ) -> Result<ArrowResponse>
pub async fn collect_parquet( self: Arc<Self>, path: &str, query: Query, config: StreamConfig ) -> Result<()>
pub async fn get_height(&self) -> Result<u64>
pub async fn get(&self, query: &Query) -> Result<QueryResponse>
pub async fn get_events( &self, query: Query ) -> Result<QueryResponse<Vec<Vec<Event>>>>
pub async fn get_arrow(&self, query: &Query) -> Result<ArrowResponse>
pub async fn stream( self: Arc<Self>, query: Query, config: StreamConfig ) -> Result<Receiver<Result<QueryResponse>>>
pub async fn stream_events( self: Arc<Self>, query: Query, config: StreamConfig ) -> Result<Receiver<Result<QueryResponse<Vec<Vec<Event>>>>>>
pub async fn stream_arrow( self: Arc<Self>, query: Query, config: StreamConfig ) -> Result<Receiver<Result<ArrowResponse>>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more