Enum UdEvent
pub enum UdEvent {
Orders(SubscribeOrdersResponse),
Trades(SubscribeTradesResponse),
Account(GetAccountResponse),
Connected,
Disconnected(String),
Failed(String),
}Expand description
What arrived on a user data stream.
Variants§
Orders(SubscribeOrdersResponse)
A message of the order stream: current states of changed orders.
Trades(SubscribeTradesResponse)
A message of the own trades stream.
Account(GetAccountResponse)
A message of the account stream: the whole account state.
Connected
The stream was opened (also after a reopen).
Disconnected(String)
The stream broke or ended and is being reopened. The text says why.
Failed(String)
The broker refuses the stream (no permission). The text says why.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UdEvent
impl RefUnwindSafe for UdEvent
impl Send for UdEvent
impl Sync for UdEvent
impl Unpin for UdEvent
impl UnsafeUnpin for UdEvent
impl UnwindSafe for UdEvent
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].