pub struct RackResponseOwned { /* private fields */ }
Expand description
RackResponse with values allocated in Rust memory space.
Upon receiving a response from Rack, we copy data into Rust and release C-allocated memory so the Ruby garbage collector can run.
Implementations§
Trait Implementations§
Source§impl Debug for RackResponseOwned
impl Debug for RackResponseOwned
Source§impl From<RackResponse> for RackResponseOwned
impl From<RackResponse> for RackResponseOwned
Source§fn from(response: RackResponse) -> RackResponseOwned
fn from(response: RackResponse) -> RackResponseOwned
Move all data out of C into Rust-owned memory. This also drops the reference to the Rack response array, allowing it to be garbage collected.
Auto Trait Implementations§
impl Freeze for RackResponseOwned
impl RefUnwindSafe for RackResponseOwned
impl Send for RackResponseOwned
impl Sync for RackResponseOwned
impl Unpin for RackResponseOwned
impl UnwindSafe for RackResponseOwned
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