pub trait CommunicatorAttributes: Communicator {
// Provided methods
fn set_attr<T: Any + Send + Sync>(&self, key: &CommKeyval, value: T) { ... }
fn get_attr<T: Any + Clone>(&self, key: &CommKeyval) -> Option<T> { ... }
fn has_attr(&self, key: &CommKeyval) -> bool { ... }
fn delete_attr(&self, key: &CommKeyval) { ... }
}Expand description
Attribute-caching operations on communicators. Blanket-implemented for every
Communicator.
Provided Methods§
Sourcefn set_attr<T: Any + Send + Sync>(&self, key: &CommKeyval, value: T)
fn set_attr<T: Any + Send + Sync>(&self, key: &CommKeyval, value: T)
Cache value under key on this communicator (MPI_Comm_set_attr).
Sourcefn get_attr<T: Any + Clone>(&self, key: &CommKeyval) -> Option<T>
fn get_attr<T: Any + Clone>(&self, key: &CommKeyval) -> Option<T>
Retrieve a clone of the attribute cached under key
(MPI_Comm_get_attr), if present and of type T.
Sourcefn has_attr(&self, key: &CommKeyval) -> bool
fn has_attr(&self, key: &CommKeyval) -> bool
Whether an attribute is cached under key.
Sourcefn delete_attr(&self, key: &CommKeyval)
fn delete_attr(&self, key: &CommKeyval)
Remove the attribute cached under key (MPI_Comm_delete_attr).
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".