pub struct DataEvent {
pub data: Vec<u8>,
pub response: ResponseFn,
pub connection: ConnectionId,
}Expand description
Payload of the subscribe_data broadcast channel. Carries the bytes that
arrived, the reply closure for the originating connection, and the
connection identifier so upper layers can demultiplex.
Fields§
§data: Vec<u8>§response: ResponseFn§connection: ConnectionIdTrait Implementations§
Auto Trait Implementations§
impl Freeze for DataEvent
impl !RefUnwindSafe for DataEvent
impl Send for DataEvent
impl Sync for DataEvent
impl Unpin for DataEvent
impl UnsafeUnpin for DataEvent
impl !UnwindSafe for DataEvent
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