[][src]Struct reclaim::leak::Leaking

pub struct 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 guard() -> Self::Guard[src]

Creates a new Guard. Read more

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]

Retires a raw marked pointer to a record. Read more

impl Default for Leaking[src]

impl Debug for Leaking[src]

Auto Trait Implementations

impl Send for Leaking

impl Unpin for Leaking

impl Sync for Leaking

impl UnwindSafe for Leaking

impl RefUnwindSafe for Leaking

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self