Crate exc_core

Source
Expand description

Exc-core: Abstractions for exchanges (the low-level apis).

Re-exports§

pub use exc_types as types;
pub use exc_symbol as symbol;
pub use exc_service as service;

Modules§

exchange
The definition of an exchange.
retry
Retry utils. Retry utils.
transport
Transport utils.
util
Utils for creating ExcService.

Structs§

AsService
Service returns by ExcService::as_service.
Asset
Asset.
Exc
The core service wrapper of this crate, which implements ExcService<T> if the request type of the underlying service implements Adaptor<T>.
ExcLayer
Create Exc from the given ExcService.
Instrument
Instrument.
IntoService
Service returns by ExcServiceExt::into_service.
Str
A SmolStr is a string type that has the following properties:
Symbol
Symbol.

Enums§

ExchangeError
Exchange Errors.
InstrumentError
Instrument Errors.
ParseAssetError
Parse asset error.
ParseSymbolError
Parse symbol error.

Traits§

Adaptor
An adaptor for request.
ExcService
An alias of Service that requires the input type to be a Request, and the error type to be ExchangeError.
ExcServiceExt
Extension trait for ExcService.
IntoExc
Service that can be converted into a Exc.
Request
Request and Response binding.
SendExcService
An alias of ExcService with Send and 'static bounds.