pub struct InboundBuffer { /* private fields */ }Expand description
The shared inbound buffer the WS reader thread fills and the command path drains. The optional callback carries no data; it only wakes an owning mailbox so the host can drain the buffer promptly.
Implementations§
Source§impl InboundBuffer
impl InboundBuffer
pub fn with_notify(notify: Arc<dyn Fn() + Send + Sync>) -> InboundBuffer
pub fn push(&self, frame: Inbound)
Trait Implementations§
Source§impl Default for InboundBuffer
impl Default for InboundBuffer
Source§fn default() -> InboundBuffer
fn default() -> InboundBuffer
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for InboundBuffer
impl !RefUnwindSafe for InboundBuffer
impl !UnwindSafe for InboundBuffer
impl Send for InboundBuffer
impl Sync for InboundBuffer
impl Unpin for InboundBuffer
impl UnsafeUnpin for InboundBuffer
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