pub struct DeribitClient { /* private fields */ }Implementations§
Source§impl DeribitClient
impl DeribitClient
pub async fn connect(env: Env) -> Result<Self, Error>
pub async fn call_raw( &self, method: &str, params: Value, ) -> Result<Value, Error>
pub async fn call<T: ApiRequest>(&self, req: T) -> Result<T::Response, Error>
pub async fn subscribe_raw( &self, channel: &str, ) -> Result<impl Stream<Item = Result<Value, Error>> + Send + 'static + use<>, Error>
pub async fn subscribe<S: Subscription + Send + 'static>( &self, subscription: S, ) -> Result<impl Stream<Item = Result<S::Data, Error>> + Send + 'static, Error>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for DeribitClient
impl RefUnwindSafe for DeribitClient
impl Send for DeribitClient
impl Sync for DeribitClient
impl Unpin for DeribitClient
impl UnwindSafe for DeribitClient
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