#[repr(C)]pub struct RackResponse {
pub value: uintptr_t,
pub code: c_int,
pub num_headers: c_int,
pub headers: *mut KeyValue,
pub body: *mut c_char,
pub is_file: c_int,
}Fields§
§value: uintptr_t§code: c_int§num_headers: c_int§headers: *mut KeyValue§body: *mut c_char§is_file: c_intImplementations§
Trait Implementations§
Source§impl Clone for RackResponse
impl Clone for RackResponse
Source§fn clone(&self) -> RackResponse
fn clone(&self) -> RackResponse
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RackResponse
impl Debug for RackResponse
Source§impl Drop for RackResponse
impl Drop for RackResponse
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 RackResponse
impl RefUnwindSafe for RackResponse
impl !Send for RackResponse
impl !Sync for RackResponse
impl Unpin for RackResponse
impl UnwindSafe for RackResponse
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)