Struct crypto_com_exchange::CryptoClient
source · pub struct CryptoClient<Fut: Future<Output = ()> + Send + Sync + 'static, T> { /* private fields */ }
Implementations§
source§impl<Fut: Future<Output = ()> + Send + Sync + 'static, T> CryptoClient<Fut, T>where
T: Clone + Send + 'static,
impl<Fut: Future<Output = ()> + Send + Sync + 'static, T> CryptoClient<Fut, T>where T: Clone + Send + 'static,
pub fn new( f: impl Fn(Result<SubscribeResult>, T) -> Fut + Send + Sync + 'static, container: T ) -> CryptoClient<Fut, T>
pub async fn wait(&mut self) -> Result<()>
pub async fn disconnect(&mut self) -> Result<()>
pub async fn connect_market(&mut self) -> Result<()>
pub async fn connect_user(&mut self) -> Result<()>
pub async fn connect(&mut self, uri: &str) -> Result<()>
pub async fn subscribe(&mut self, channels: Vec<String>) -> Result<()>
pub async fn unsubscribe(&mut self, channels: Vec<String>) -> Result<()>
pub async fn auth(&mut self, api_key: &str, api_secret: &str) -> Result<()>
Auto Trait Implementations§
impl<Fut, T> !RefUnwindSafe for CryptoClient<Fut, T>
impl<Fut, T> Send for CryptoClient<Fut, T>where T: Send,
impl<Fut, T> Sync for CryptoClient<Fut, T>where T: Sync,
impl<Fut, T> Unpin for CryptoClient<Fut, T>where T: Unpin,
impl<Fut, T> !UnwindSafe for CryptoClient<Fut, T>
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