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]
pub fn as_pin(&'a self) -> Pin<'a, T>
[src]
Convert this type to a Pin.
pub fn as_pin_mut(&'a mut self) -> PinMut<'a, T>
[src]
Convert this type to a PinMut.
Trait Implementations
Auto Trait Implementations
impl<'a, T: ?Sized> Send for StackPinned<'a, T> where
T: Send,
T: Send,
impl<'a, T: ?Sized> Sync for StackPinned<'a, T> where
T: Sync,
T: Sync,