pub struct Exchange { /* private fields */ }Implementations§
Source§impl Exchange
impl Exchange
pub fn new( request: Request<RequestBody>, context: CallContext, attempt: u32, ) -> Self
pub fn request(&self) -> &Request<RequestBody>
pub fn request_mut(&mut self) -> &mut Request<RequestBody>
pub fn into_request(self) -> Request<RequestBody>
pub fn context(&self) -> &CallContext
pub fn into_parts(self) -> (Request<RequestBody>, CallContext, u32)
pub fn attempt(&self) -> u32
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Exchange
impl !RefUnwindSafe for Exchange
impl !UnwindSafe for Exchange
impl Send for Exchange
impl Sync for Exchange
impl Unpin for Exchange
impl UnsafeUnpin for Exchange
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