pub struct StoffelClient { /* private fields */ }Implementations§
Source§impl StoffelClient
impl StoffelClient
pub fn builder() -> ClientBuilder
pub async fn connect(servers: &[&str]) -> Result<Self>
pub async fn disconnect(self) -> Result<()>
pub async fn run<V>(&self, inputs: &[V]) -> Result<Vec<Value>>
pub async fn run_function<V>( &self, name: &str, inputs: &[V], ) -> Result<Vec<Value>>
pub async fn run_typed<I, O>(&self, inputs: I) -> Result<O>where
I: TypedClientInputs,
O: TypedClientOutputs,
pub async fn run_typed_with_manifest<M, I, O>(&self, inputs: I) -> Result<O>
pub async fn run_function_typed<I, O>(&self, name: &str, inputs: I) -> Result<O>where
I: TypedClientInputs,
O: TypedClientOutputs,
pub async fn run_function_typed_with_manifest<M, I, O>( &self, name: &str, inputs: I, ) -> Result<O>
pub async fn submit<V>(&self, inputs: &[V]) -> Result<ComputationHandle>
pub async fn submit_function<V>( &self, name: &str, inputs: &[V], ) -> Result<ComputationHandle>
pub async fn submit_typed<I>(&self, inputs: I) -> Result<ComputationHandle>where
I: TypedClientInputs,
pub async fn submit_typed_with_manifest<M, I>(
&self,
inputs: I,
) -> Result<ComputationHandle>where
M: GeneratedProgramManifest,
I: TypedClientInputs,
pub async fn submit_function_typed<I>(
&self,
name: &str,
inputs: I,
) -> Result<ComputationHandle>where
I: TypedClientInputs,
pub async fn submit_function_typed_with_manifest<M, I>(
&self,
name: &str,
inputs: I,
) -> Result<ComputationHandle>where
M: GeneratedProgramManifest,
I: TypedClientInputs,
pub async fn verify_ordering(&self) -> Result<VerifiedOrdering>
pub fn state(&self) -> ClientState
pub fn summary(&self) -> ClientSummary
pub fn client_id(&self) -> ClientId
pub fn transport_client_id(&self) -> Option<ClientId>
pub fn servers(&self) -> &[String]
pub fn program(&self) -> Option<&Program>
pub fn verified_ordering(&self) -> Option<&VerifiedOrdering>
pub fn network_manager(&self) -> Option<&QuicNetworkManager>
pub fn offchain_io(&self) -> Option<&OffChainClientConfig>
pub fn is_connected(&self) -> bool
pub fn has_program(&self) -> bool
Trait Implementations§
Source§impl Clone for StoffelClient
impl Clone for StoffelClient
Auto Trait Implementations§
impl !RefUnwindSafe for StoffelClient
impl !UnwindSafe for StoffelClient
impl Freeze for StoffelClient
impl Send for StoffelClient
impl Sync for StoffelClient
impl Unpin for StoffelClient
impl UnsafeUnpin for StoffelClient
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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