Struct mpi::request::StaticScope
[−]
[src]
pub struct StaticScope;
The scope that lasts as long as the entire execution of the program
Unlike LocalScope<'a>
, StaticScope
does not require any bookkeeping on the requests as every
request associated with a StaticScope
can live as long as they please.
A StaticScope
can be created simply by calling the StaticScope
constructor.
Invariant
For any Request
registered with a StaticScope
, its associated buffers must be 'static
.
Trait Implementations
impl Debug for StaticScope
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for StaticScope
[src]
fn clone(&self) -> StaticScope
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for StaticScope
[src]
impl Default for StaticScope
[src]
fn default() -> StaticScope
[src]
Returns the "default value" for a type. Read more
impl PartialEq for StaticScope
[src]
fn eq(&self, __arg_0: &StaticScope) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Eq for StaticScope
[src]
impl Hash for StaticScope
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Scope<'static> for StaticScope
[src]
fn register(&self)
[src]
Registers a request with the scope.
unsafe fn unregister(&self)
[src]
Unregisters a request from the scope.