Struct pin_api::StackPinned [] [src]

pub struct StackPinned<'a, T: ?Sized + 'a> { /* fields omitted */ }

This struct is used for pinning data to the stack.

You can construct this struct using the pinned function.

This struct has no methods of its own and should only be used as part of constructing a Pin or PinMut type.

Methods

impl<'a, T: ?Sized + 'a> StackPinned<'a, T>
[src]

[src]

Convert this type to a Pin.

[src]

Convert this type to a PinMut.

Trait Implementations

Auto Trait Implementations

impl<'a, T: ?Sized> Send for StackPinned<'a, T> where
    T: Send

impl<'a, T: ?Sized> Sync for StackPinned<'a, T> where
    T: Sync