pub struct BasicXtbStreamConnection { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl Debug for BasicXtbStreamConnection
impl Debug for BasicXtbStreamConnection
Source§impl Drop for BasicXtbStreamConnection
impl Drop for BasicXtbStreamConnection
Source§impl XtbStreamConnection for BasicXtbStreamConnection
impl XtbStreamConnection for BasicXtbStreamConnection
Source§type MessageStream = BasicMessageStream
type MessageStream = BasicMessageStream
Type of message stream returned by the
make_message_stream
method.type Error = BasicXtbStreamConnectionError
Source§fn subscribe<'life0, 'life1, 'async_trait>(
&'life0 mut self,
command: &'life1 str,
arguments: Option<Value>,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn subscribe<'life0, 'life1, 'async_trait>(
&'life0 mut self,
command: &'life1 str,
arguments: Option<Value>,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Subscribe for data stream from the XTB server Read more
Source§fn unsubscribe<'life0, 'life1, 'async_trait>(
&'life0 mut self,
command: &'life1 str,
arguments: Option<Value>,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn unsubscribe<'life0, 'life1, 'async_trait>(
&'life0 mut self,
command: &'life1 str,
arguments: Option<Value>,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Unsubscribe from data stream from the XTB server Read more
Source§fn make_message_stream<'life0, 'async_trait>(
&'life0 mut self,
filter: DataMessageFilter,
) -> Pin<Box<dyn Future<Output = Self::MessageStream> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn make_message_stream<'life0, 'async_trait>(
&'life0 mut self,
filter: DataMessageFilter,
) -> Pin<Box<dyn Future<Output = Self::MessageStream> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Create message stream builder
Auto Trait Implementations§
impl Freeze for BasicXtbStreamConnection
impl !RefUnwindSafe for BasicXtbStreamConnection
impl Send for BasicXtbStreamConnection
impl Sync for BasicXtbStreamConnection
impl Unpin for BasicXtbStreamConnection
impl !UnwindSafe for BasicXtbStreamConnection
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