pub struct ClientStorage(/* private fields */);Expand description
Backing storage for an HTTP client in zero-heap mode.
In heap mode this is a zero-size placeholder. Pass a &mut ClientStorage
to Client::create — the borrow checker ensures the storage outlives
the client.
ⓘ
let mut storage = ClientStorage::new();
let client = Client::create(&mut storage)?;Implementations§
Source§impl ClientStorage
impl ClientStorage
Auto Trait Implementations§
impl Freeze for ClientStorage
impl RefUnwindSafe for ClientStorage
impl Send for ClientStorage
impl Sync for ClientStorage
impl Unpin for ClientStorage
impl UnwindSafe for ClientStorage
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