pub struct FfiResponse {
pub status: u16,
pub headers: Vec<(String, String)>,
pub body_handle: u64,
pub url: String,
}Expand description
Flat response-head struct that crosses the FFI boundary.
body_handle is 0 (the slotmap null sentinel) for null-body status codes
(RFC 9110 §6.3: 204, 205, 304). Adapters should treat 0 as “no body”
rather than inspecting the status code themselves.
Fields§
§status: u16§headers: Vec<(String, String)>§body_handle: u64Handle to a BodyReader containing the response body.
url: StringFull httpi:// URL of the responding peer.
Trait Implementations§
Source§impl Clone for FfiResponse
impl Clone for FfiResponse
Source§fn clone(&self) -> FfiResponse
fn clone(&self) -> FfiResponse
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for FfiResponse
impl RefUnwindSafe for FfiResponse
impl Send for FfiResponse
impl Sync for FfiResponse
impl Unpin for FfiResponse
impl UnsafeUnpin for FfiResponse
impl UnwindSafe for FfiResponse
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