Skip to main content

pin_set

Macro pin_set 

Source
macro_rules! pin_set {
    ( $var:ident, $value:expr $(,)? ) => { ... };
}
Expand description

Same as Pin::set(&mut $var, $value), but usable even after pin_drop! has been invoked on the given $var.

Note that this API is only available for $var: Pin<&mut _> bindings which stem from a droppable_pin! invocation.