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>
impl<Fut: Future<Output = ()> + Send + Sync + 'static, T> CryptoClient<Fut, T>
pub fn new( f: impl Fn(Result<SubscribeResult, CryptoError>, T) -> Fut + Send + Sync + 'static, container: T, ) -> CryptoClient<Fut, T>
pub async fn wait(&mut self) -> Result<(), CryptoError>
pub async fn disconnect(&mut self) -> Result<(), CryptoError>
pub async fn connect_market(&mut self) -> Result<(), CryptoError>
pub async fn connect_user(&mut self) -> Result<(), CryptoError>
pub async fn connect(&mut self, uri: &str) -> Result<(), CryptoError>
pub async fn subscribe( &mut self, channels: Vec<String>, ) -> Result<(), CryptoError>
pub async fn unsubscribe( &mut self, channels: Vec<String>, ) -> Result<(), CryptoError>
pub async fn auth( &mut self, api_key: &str, api_secret: &str, ) -> Result<(), CryptoError>
Auto Trait Implementations§
impl<Fut, T> Freeze for CryptoClient<Fut, T>where
T: Freeze,
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