pub struct ExecutionClientAdapter {
pub client_id: ClientId,
pub venue: Venue,
pub account_id: AccountId,
pub oms_type: OmsType,
/* private fields */
}Expand description
Wraps an ExecutionClient, managing its lifecycle and providing access to the client.
Fields§
§client_id: ClientId§venue: Venue§account_id: AccountId§oms_type: OmsTypeImplementations§
Source§impl ExecutionClientAdapter
impl ExecutionClientAdapter
Sourcepub fn new(client: Box<dyn ExecutionClient>) -> Self
pub fn new(client: Box<dyn ExecutionClient>) -> Self
Creates a new ExecutionClientAdapter with the given client.
Sourcepub async fn disconnect(&mut self) -> Result<()>
pub async fn disconnect(&mut self) -> Result<()>
Trait Implementations§
Source§impl Debug for ExecutionClientAdapter
impl Debug for ExecutionClientAdapter
Source§impl Deref for ExecutionClientAdapter
impl Deref for ExecutionClientAdapter
Auto Trait Implementations§
impl Freeze for ExecutionClientAdapter
impl !RefUnwindSafe for ExecutionClientAdapter
impl !Send for ExecutionClientAdapter
impl !Sync for ExecutionClientAdapter
impl Unpin for ExecutionClientAdapter
impl !UnwindSafe for ExecutionClientAdapter
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more