pub struct OwnedPreparationStorage { /* private fields */ }Expand description
Fallibly allocated preparation buffers cleared in full on drop.
Implementations§
Source§impl OwnedPreparationStorage
impl OwnedPreparationStorage
Sourcepub fn try_for_profile(
profile: PreparationCapacityProfile,
) -> Result<Self, PreparationCapacityError>
pub fn try_for_profile( profile: PreparationCapacityProfile, ) -> Result<Self, PreparationCapacityError>
Allocates exactly one named profile without panicking on allocation failure.
Sourcepub fn guard(&mut self) -> PreparationStorageGuard<'_>
pub fn guard(&mut self) -> PreparationStorageGuard<'_>
Borrows both owned buffers behind a cleanup guard.
Sourcepub fn capacities(&self) -> (usize, usize)
pub fn capacities(&self) -> (usize, usize)
Returns capacities without exposing stored request bytes.
Trait Implementations§
Source§impl Debug for OwnedPreparationStorage
Available on crate feature alloc only.
impl Debug for OwnedPreparationStorage
Available on crate feature
alloc only.Source§impl Drop for OwnedPreparationStorage
Available on crate feature alloc only.
impl Drop for OwnedPreparationStorage
Available on crate feature
alloc only.Auto Trait Implementations§
impl Freeze for OwnedPreparationStorage
impl RefUnwindSafe for OwnedPreparationStorage
impl Send for OwnedPreparationStorage
impl Sync for OwnedPreparationStorage
impl Unpin for OwnedPreparationStorage
impl UnsafeUnpin for OwnedPreparationStorage
impl UnwindSafe for OwnedPreparationStorage
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