pub struct MemPusher {
pub receive: Arc<Mutex<Vec<u8>>>,
/* private fields */
}Expand description
In-memory pusher for testing or buffer-based workflows.
All pushed data is stored in a shared Vec<u8> protected by a mutex.
Supports random-access writes via copy_from_slice for non-sequential ranges.
Fields§
§receive: Arc<Mutex<Vec<u8>>>Implementations§
Trait Implementations§
Source§impl Pusher for MemPusher
impl Pusher for MemPusher
Auto Trait Implementations§
impl !RefUnwindSafe for MemPusher
impl !Sync for MemPusher
impl !UnwindSafe for MemPusher
impl Freeze for MemPusher
impl Send for MemPusher
impl Unpin for MemPusher
impl UnsafeUnpin for MemPusher
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