pub struct RequestDecoder;Expand description
Decoder for the trading wire protocol.
Zero-sized. The runtime owns an Arc<dyn RequestDecoder<...>>;
constructing one is Arc::new(RequestDecoder).
Trait Implementations§
Source§impl Clone for RequestDecoder
impl Clone for RequestDecoder
Source§fn clone(&self) -> RequestDecoder
fn clone(&self) -> RequestDecoder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RequestDecoder
Source§impl Debug for RequestDecoder
impl Debug for RequestDecoder
Source§impl RequestDecoder for RequestDecoder
impl RequestDecoder for RequestDecoder
Source§type Event = TradingEvent
type Event = TradingEvent
Application event type produced on a successful decode. The
runtime wraps this in a transport-level envelope (e.g.
JournalEvent::App) before publishing.Source§fn decode(&self, bytes: &[u8], permission: Permission) -> Decoded<TradingEvent>
fn decode(&self, bytes: &[u8], permission: Permission) -> Decoded<TradingEvent>
Decode a wire frame.
bytes is the framed payload (length
prefix already stripped by the caller). permission is the
role established during the auth handshake and stored on the
connection.Auto Trait Implementations§
impl Freeze for RequestDecoder
impl RefUnwindSafe for RequestDecoder
impl Send for RequestDecoder
impl Sync for RequestDecoder
impl Unpin for RequestDecoder
impl UnsafeUnpin for RequestDecoder
impl UnwindSafe for RequestDecoder
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