Struct FCOHandle
pub struct FCOHandle { /* private fields */ }Implementations§
§impl FCOHandle
impl FCOHandle
pub fn subscribe_progress(&self) -> Receiver<ProgressUpdate>
pub async fn add_lyquid(&self, msg: AddLyquid) -> Result<Option<u64>, Error>
pub async fn remove_lyquid(&self, msg: RemoveLyquid) -> Result<(), Error>
pub async fn init_deps(&self, msg: InitDeps) -> Result<(), Error>
pub async fn on_inter_call(&self, msg: OnInterCall) -> Result<Vec<u8>>
pub async fn submit_call(&self, msg: SubmitCall) -> Result<Vec<u8>>
pub async fn fetch_oracle_info( &self, msg: FetchOracleInfo, ) -> Result<Option<OracleEpochInfo>, Error>
pub async fn commit(&self) -> Result<(), KVStoreError>
Trait Implementations§
§impl Service<FetchOracleInfo> for FCOHandle
impl Service<FetchOracleInfo> for FCOHandle
§type Future = Pin<Box<dyn Future<Output = Result<<FCOHandle as Service<FetchOracleInfo>>::Response, <FCOHandle as Service<FetchOracleInfo>>::Error>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<<FCOHandle as Service<FetchOracleInfo>>::Response, <FCOHandle as Service<FetchOracleInfo>>::Error>> + Send>>
The future response value.
§impl Service<OnInterCall> for FCOHandle
impl Service<OnInterCall> for FCOHandle
§type Future = Pin<Box<dyn Future<Output = Result<<FCOHandle as Service<OnInterCall>>::Response, <FCOHandle as Service<OnInterCall>>::Error>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<<FCOHandle as Service<OnInterCall>>::Response, <FCOHandle as Service<OnInterCall>>::Error>> + Send>>
The future response value.
§fn poll_ready(&mut self, _cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
fn poll_ready(&mut self, _cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
Returns
Poll::Ready(Ok(())) when the service is able to process requests. Read more§fn call(&mut self, req: OnInterCall) -> Self::Future
fn call(&mut self, req: OnInterCall) -> Self::Future
Process the request and return the response asynchronously. Read more
§impl Service<SubmitCall> for FCOHandle
impl Service<SubmitCall> for FCOHandle
§type Future = Pin<Box<dyn Future<Output = Result<<FCOHandle as Service<SubmitCall>>::Response, <FCOHandle as Service<SubmitCall>>::Error>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<<FCOHandle as Service<SubmitCall>>::Response, <FCOHandle as Service<SubmitCall>>::Error>> + Send>>
The future response value.
Auto Trait Implementations§
impl Freeze for FCOHandle
impl !RefUnwindSafe for FCOHandle
impl Send for FCOHandle
impl Sync for FCOHandle
impl Unpin for FCOHandle
impl UnsafeUnpin for FCOHandle
impl !UnwindSafe for FCOHandle
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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§impl<M, S, Target, Request> MakeService<Target, Request> for Mwhere
M: Service<Target, Response = S>,
S: Service<Request>,
impl<M, S, Target, Request> MakeService<Target, Request> for Mwhere
M: Service<Target, Response = S>,
S: Service<Request>,
§fn poll_ready(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<(), <M as MakeService<Target, Request>>::MakeError>>
fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), <M as MakeService<Target, Request>>::MakeError>>
Returns
Poll::Ready when the factory is able to create more services. Read more§fn make_service(
&mut self,
target: Target,
) -> <M as MakeService<Target, Request>>::Future
fn make_service( &mut self, target: Target, ) -> <M as MakeService<Target, Request>>::Future
Create and return a new service value asynchronously.
§fn into_service(self) -> IntoService<Self, Request>where
Self: Sized,
fn into_service(self) -> IntoService<Self, Request>where
Self: Sized,
§fn as_service(&mut self) -> AsService<'_, Self, Request>where
Self: Sized,
fn as_service(&mut self) -> AsService<'_, Self, Request>where
Self: Sized,
§impl<T, Request> ServiceExt<Request> for Twhere
T: Service<Request> + ?Sized,
impl<T, Request> ServiceExt<Request> for Twhere
T: Service<Request> + ?Sized,
§fn ready(&mut self) -> Ready<'_, Self, Request>where
Self: Sized,
fn ready(&mut self) -> Ready<'_, Self, Request>where
Self: Sized,
Yields a mutable reference to the service when it is ready to accept a request.
§fn ready_oneshot(self) -> ReadyOneshot<Self, Request>where
Self: Sized,
fn ready_oneshot(self) -> ReadyOneshot<Self, Request>where
Self: Sized,
Yields the service when it is ready to accept a request.
§fn oneshot(self, req: Request) -> Oneshot<Self, Request>where
Self: Sized,
fn oneshot(self, req: Request) -> Oneshot<Self, Request>where
Self: Sized,
Consume this
Service, calling it with the provided request once it is ready.§fn and_then<F>(self, f: F) -> AndThen<Self, F>
fn and_then<F>(self, f: F) -> AndThen<Self, F>
Executes a new future after this service’s future resolves. This does
not alter the behaviour of the
poll_ready method. Read more§fn map_response<F, Response>(self, f: F) -> MapResponse<Self, F>
fn map_response<F, Response>(self, f: F) -> MapResponse<Self, F>
Maps this service’s response value to a different value. This does not
alter the behaviour of the
poll_ready method. Read more§fn map_err<F, Error>(self, f: F) -> MapErr<Self, F>
fn map_err<F, Error>(self, f: F) -> MapErr<Self, F>
Maps this service’s error value to a different value. This does not
alter the behaviour of the
poll_ready method. Read more§fn map_result<F, Response, Error>(self, f: F) -> MapResult<Self, F>
fn map_result<F, Response, Error>(self, f: F) -> MapResult<Self, F>
Maps this service’s result type (
Result<Self::Response, Self::Error>)
to a different value, regardless of whether the future succeeds or
fails. Read more§fn map_request<F, NewRequest>(self, f: F) -> MapRequest<Self, F>
fn map_request<F, NewRequest>(self, f: F) -> MapRequest<Self, F>
Composes a function in front of the service. Read more
§fn then<F, Response, Error, Fut>(self, f: F) -> Then<Self, F>
fn then<F, Response, Error, Fut>(self, f: F) -> Then<Self, F>
Composes an asynchronous function after this service. Read more
§fn map_future<F, Fut, Response, Error>(self, f: F) -> MapFuture<Self, F>
fn map_future<F, Fut, Response, Error>(self, f: F) -> MapFuture<Self, F>
Composes a function that transforms futures produced by the service. Read more