pub struct PreparedRequest { /* private fields */ }Expand description
Request that has registered and reserved send resources but has not yet been submitted. Dropping it cancels the reservation and operation.
Implementations§
Source§impl PreparedRequest
impl PreparedRequest
Sourcepub fn handle(&self) -> &RequestHandle
pub fn handle(&self) -> &RequestHandle
Borrows the request handle before commit.
Sourcepub fn commit(self) -> Result<RequestReceipt>
pub fn commit(self) -> Result<RequestReceipt>
Commits the reservation and returns a receipt for the same operation.
This is a local synchronous transition: it does not wait for a network write or a peer response. Cancellation, close, or an expired deadline can still make the commit fail.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for PreparedRequest
impl !UnwindSafe for PreparedRequest
impl Forget for PreparedRequest
impl Freeze for PreparedRequest
impl Move for PreparedRequest
impl Send for PreparedRequest
impl Sync for PreparedRequest
impl Unpin for PreparedRequest
impl UnsafeUnpin for PreparedRequest
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