pub struct ShapedRequestBuilder { /* private fields */ }Expand description
Dialect-facing capability used to construct shaped requests.
Values of this type are created only by shape_request. Dialect
implementations receive a mutable reference while their
crate::UpstreamDialect::shape method is executing, which lets them return
a shaped request without exposing an unrestricted public constructor.
Implementations§
Source§impl ShapedRequestBuilder
impl ShapedRequestBuilder
Sourcepub fn shaped_request(
&mut self,
url: Url,
method: Method,
headers: HeaderMap,
body: Bytes,
) -> ShapedRequest
pub fn shaped_request( &mut self, url: Url, method: Method, headers: HeaderMap, body: Bytes, ) -> ShapedRequest
Creates a shaped request from dialect-owned parts.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ShapedRequestBuilder
impl RefUnwindSafe for ShapedRequestBuilder
impl Send for ShapedRequestBuilder
impl Sync for ShapedRequestBuilder
impl Unpin for ShapedRequestBuilder
impl UnsafeUnpin for ShapedRequestBuilder
impl UnwindSafe for ShapedRequestBuilder
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