Struct barter_integration::Event
source · pub struct Event<Payload> {
pub sequence: u64,
pub payload: Payload,
}
Expand description
Generic event generated by an ExchangeStream
. Contains a monotonically increasing
sequence number to support determining event order from the socket.
Fields
sequence: u64
payload: Payload
Trait Implementations
Auto Trait Implementations
impl<Payload> RefUnwindSafe for Event<Payload>where
Payload: RefUnwindSafe,
impl<Payload> Send for Event<Payload>where
Payload: Send,
impl<Payload> Sync for Event<Payload>where
Payload: Sync,
impl<Payload> Unpin for Event<Payload>where
Payload: Unpin,
impl<Payload> UnwindSafe for Event<Payload>where
Payload: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more