pub struct Reused<'a> {
pub id: ConnectionId,
pub uri: &'a Uri,
pub version: Version,
}Expand description
A connection was taken from the pool instead of being made.
The counterpart of Connected, and the fact a caller cannot
otherwise get at: two requests to one origin either cost one
connection or two, and only the transport knows which happened.
Fields§
§id: ConnectionIdThe id this connection was given when it was made — so the
Connected it belongs to is findable.
uri: &'a Uri§version: VersionWhat is spoken on it. A pooled connection is keyed on its protocol, so this is what the connection negotiated when it was made, not a guess.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Reused<'a>
impl<'a> RefUnwindSafe for Reused<'a>
impl<'a> Send for Reused<'a>
impl<'a> Sync for Reused<'a>
impl<'a> Unpin for Reused<'a>
impl<'a> UnsafeUnpin for Reused<'a>
impl<'a> UnwindSafe for Reused<'a>
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