[−][src]Struct reclaim::leak::Leaking
A no-op memory "reclamation" scheme that deliberately leaks all memory.
Methods
impl Leaking
[src]
pub fn leak<T, N: Unsigned>(unlinked: Unlinked<T, N>)
[src]
Leaks the given unlinked
.
This is safe wrapper for [retire
][Reclaim::retire], which does not
require any invariants to be maintained, because retired records are
not freed but leaked.
Trait Implementations
impl GlobalReclaim for Leaking
[src]
type Guard = Guard
The type used for protecting concurrently shared references.
fn try_flush()
[src]
unsafe fn retire<T: 'static, N: Unsigned>(_: Unlinked<T, N>)
[src]
unsafe fn retire_unchecked<T, N: Unsigned>(_: Unlinked<T, N>)
[src]
fn guard() -> Self::Guard
[src]
unsafe fn retire_raw<T, N: Unsigned>(ptr: MarkedPtr<T, N>)
[src]
Retires a raw marked pointer to a record. Read more
impl Reclaim for Leaking
[src]
type Local = ()
The type used for storing all relevant thread local state.
type RecordHeader = ()
Every record allocates this type alongside itself to store additional reclamation scheme specific data. When no such data is required, ()
is the recommended choice. Read more
unsafe fn retire_local<T: 'static, N: Unsigned>(_: &(), _: Unlinked<T, N>)
[src]
Leaks the given value.
Safety
Contrary to the specifications of the trait's method, this particular implementation is always safe to call.
unsafe fn retire_local_unchecked<T, N: Unsigned>(_: &(), _: Unlinked<T, N>)
[src]
Leaks the given value.
Safety
Contrary to the specifications of the trait's method, this particular implementation is always safe to call.
unsafe fn retire_local_raw<T, N: Unsigned>(
local: &Self::Local,
ptr: MarkedPtr<T, N>
)
[src]
local: &Self::Local,
ptr: MarkedPtr<T, N>
)
Retires a raw marked pointer to a record. Read more
impl Default for Leaking
[src]
impl Debug for Leaking
[src]
Auto Trait Implementations
impl Sync for Leaking
impl Unpin for Leaking
impl Send for Leaking
impl RefUnwindSafe for Leaking
impl UnwindSafe for Leaking
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self