pub struct Client<S: Strategy> { /* private fields */ }Implementations§
Source§impl<S: Strategy> Client<S>
impl<S: Strategy> Client<S>
pub async fn seed_upload(&self, seed: Seed) -> Result<(), Error>
pub async fn seed_get(&self, query: IndexQuery) -> Result<Seed, Error>
pub async fn notarized_upload(&self, notarized: Notarized) -> Result<(), Error>
pub async fn notarized_get(&self, query: IndexQuery) -> Result<Notarized, Error>
pub async fn finalized_upload(&self, finalized: Finalized) -> Result<(), Error>
pub async fn finalized_get(&self, query: IndexQuery) -> Result<Finalized, Error>
pub async fn block_get(&self, query: Query) -> Result<Payload, Error>
pub async fn listen( &self, ) -> Result<impl Stream<Item = Result<Message, Error>>, Error>
Source§impl<S: Strategy> Client<S>
impl<S: Strategy> Client<S>
Sourcepub fn new(uri: &str, identity: Identity, strategy: S) -> Self
pub fn new(uri: &str, identity: Identity, strategy: S) -> Self
Create a new client for the given indexer URI.
TLS is automatically configured using the system’s root certificates. For HTTPS/WSS endpoints with certificates signed by trusted CAs, no additional configuration is needed.
For custom TLS configuration (e.g., self-signed certificates),
use ClientBuilder instead.
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for Client<S>where
S: Freeze,
impl<S> !RefUnwindSafe for Client<S>
impl<S> Send for Client<S>
impl<S> Sync for Client<S>
impl<S> Unpin for Client<S>where
S: Unpin,
impl<S> !UnwindSafe for Client<S>
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> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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