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]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<'a> Drop for LocalScope<'a>
[src]
impl<'a, 'b> Scope<'a> for &'b LocalScope<'a>
[src]
fn register(&self)
[src]
Registers a request with the scope.
unsafe fn unregister(&self)
[src]
Unregisters a request from the scope.