Struct mpi::request::LocalScope [] [src]

pub struct LocalScope<'a> { /* fields omitted */ }

A temporary scope that lasts no more than the lifetime 'a

Use LocalScope for to perform requests with temporary buffers.

To obtain a LocalScope, use the scope function.

Invariant

For any Request registered with a LocalScope<'a>, its associated buffers must outlive 'a.

Panics

When LocalScope is dropped, it will panic if there are any lingering Requests that have not yet been completed.

Trait Implementations

impl<'a> Debug for LocalScope<'a>
[src]

[src]

Formats the value using the given formatter. Read more

impl<'a> Drop for LocalScope<'a>
[src]

[src]

Executes the destructor for this type. Read more

impl<'a, 'b> Scope<'a> for &'b LocalScope<'a>
[src]

[src]

Registers a request with the scope.

[src]

Unregisters a request from the scope.