pub struct Payload {
pub data: Bytes,
pub has_binary: bool,
pub peeked: Option<PacketBuf>,
}Expand description
A payload to transmit to the client through http polling
Fields§
§data: BytesThe data of the payload.
has_binary: boolWhether the payload contains binary data.
peeked: Option<PacketBuf>A peeked packet buffer that could not be sent due to the max payload size.
Implementations§
Auto Trait Implementations§
impl !Freeze for Payload
impl RefUnwindSafe for Payload
impl Send for Payload
impl Sync for Payload
impl Unpin for Payload
impl UnsafeUnpin for Payload
impl UnwindSafe for Payload
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