Skip to main content

CommunicatorAttributes

Trait CommunicatorAttributes 

Source
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§

Source

fn set_attr<T: Any + Send + Sync>(&self, key: &CommKeyval, value: T)

Cache value under key on this communicator (MPI_Comm_set_attr).

Source

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.

Source

fn has_attr(&self, key: &CommKeyval) -> bool

Whether an attribute is cached under key.

Source

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".

Implementors§