pub struct ResponseCompletion { /* private fields */ }Expand description
Completion metadata returned by an asynchronous transport.
This value does not commit a response. The SDK validates and commits it only after the transport future returns successfully.
Implementations§
Source§impl ResponseCompletion
impl ResponseCompletion
Sourcepub const fn new(
status: StatusCode,
initialized_len: usize,
metadata: ResponseMetadata,
) -> Self
pub const fn new( status: StatusCode, initialized_len: usize, metadata: ResponseMetadata, ) -> Self
Describes one completely initialized response.
Auto Trait Implementations§
impl Freeze for ResponseCompletion
impl RefUnwindSafe for ResponseCompletion
impl Send for ResponseCompletion
impl Sync for ResponseCompletion
impl Unpin for ResponseCompletion
impl UnsafeUnpin for ResponseCompletion
impl UnwindSafe for ResponseCompletion
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