pub struct BasicXtbConnection { /* private fields */ }
Expand description
Common implementation of the XtbConnection
trait.
Implementations§
Source§impl BasicXtbConnection
impl BasicXtbConnection
Sourcepub async fn new(url: Url) -> Result<Self, BasicXtbConnectionError>
pub async fn new(url: Url) -> Result<Self, BasicXtbConnectionError>
Create new instance from server url
Trait Implementations§
Source§impl Drop for BasicXtbConnection
impl Drop for BasicXtbConnection
Source§impl XtbConnection for BasicXtbConnection
impl XtbConnection for BasicXtbConnection
type Error = BasicXtbConnectionError
type Response = ResponsePromise
Source§fn send_command<'life0, 'life1, 'async_trait>(
&'life0 mut self,
command: &'life1 str,
payload: Option<Value>,
) -> Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn send_command<'life0, 'life1, 'async_trait>(
&'life0 mut self,
command: &'life1 str,
payload: Option<Value>,
) -> Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Send standard command to the server.
Auto Trait Implementations§
impl Freeze for BasicXtbConnection
impl !RefUnwindSafe for BasicXtbConnection
impl Send for BasicXtbConnection
impl Sync for BasicXtbConnection
impl Unpin for BasicXtbConnection
impl !UnwindSafe for BasicXtbConnection
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