pub struct Buffer<Op: Operation> { /* private fields */ }Expand description
A route that simply collects requests for the caller to drain and handle.
Unlike Serialized and Parked, this
lane does no FFI or id bookkeeping: the routing closure pushes each request
with Buffer::push, and the surrounding code later calls
Buffer::drain to take and handle them. This is convenient for tests and
for simple, synchronous in-process handlers.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<Op> !Freeze for Buffer<Op>
impl<Op> RefUnwindSafe for Buffer<Op>
impl<Op> Send for Buffer<Op>
impl<Op> Sync for Buffer<Op>
impl<Op> Unpin for Buffer<Op>where
Op: Unpin,
impl<Op> UnsafeUnpin for Buffer<Op>
impl<Op> UnwindSafe for Buffer<Op>
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