Struct mpi::request::StaticScope
source · pub struct StaticScope;
Expand description
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§
source§impl Clone for StaticScope
impl Clone for StaticScope
source§fn clone(&self) -> StaticScope
fn clone(&self) -> StaticScope
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for StaticScope
impl Debug for StaticScope
source§impl Default for StaticScope
impl Default for StaticScope
source§fn default() -> StaticScope
fn default() -> StaticScope
Returns the “default value” for a type. Read more
source§impl Hash for StaticScope
impl Hash for StaticScope
source§impl PartialEq for StaticScope
impl PartialEq for StaticScope
source§fn eq(&self, other: &StaticScope) -> bool
fn eq(&self, other: &StaticScope) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Scope<'static> for StaticScope
impl Scope<'static> for StaticScope
impl Copy for StaticScope
impl Eq for StaticScope
impl StructuralEq for StaticScope
impl StructuralPartialEq for StaticScope
Auto Trait Implementations§
impl RefUnwindSafe for StaticScope
impl Send for StaticScope
impl Sync for StaticScope
impl Unpin for StaticScope
impl UnwindSafe for StaticScope
Blanket Implementations§
source§impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
source§fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
Convert the given value into an approximately equivalent representation.
source§impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
§type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
The error type produced by a failed conversion.
source§fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
Convert the subject into an approximately equivalent representation.
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T, Dst> ConvAsUtil<Dst> for T
impl<T, Dst> ConvAsUtil<Dst> for T
source§impl<T> ConvUtil for T
impl<T> ConvUtil for T
source§fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
Approximate the subject to a given type with the default scheme.
source§fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>
Approximate the subject to a given type with a specific scheme.