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 crate::ffi::handles::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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more