Skip to main content

Payload

Enum Payload 

Source
pub enum Payload {
Show 15 variants Empty, Int(i64), UInt(u64), Float(f64), Bool(bool), Array1(Vec<f64>), Array2 { rows: usize, cols: usize, data: Vec<f64>, }, String(String), HomoLumo { homo: f64, lumo: f64, homo_idx: i32, lumo_idx: i32, }, EnergyComponents { e_kin: f64, e_hartree: f64, e_xc: f64, e_core: f64, e_total: f64, }, ScfInfo { nsteps: i32, converged: bool, energy_change: f64, }, GridInfo { npts: [i32; 3], origin: [f64; 3], dh: [[f64; 3]; 3], }, SharedArray3 { shm_name: String, dims: [usize; 3], byte_size: usize, }, SharedArray2 { shm_name: String, rows: usize, cols: usize, byte_size: usize, }, MoCoeffInfo { nao: usize, nmo: usize, },
}
Expand description

The payload of a successful response.

Variants§

§

Empty

No data to return (void operations).

§

Int(i64)

A single integer value.

§

UInt(u64)

A single unsigned integer value.

§

Float(f64)

A single float value.

§

Bool(bool)

A boolean value.

§

Array1(Vec<f64>)

A 1-D f64 array (flat).

§

Array2

A 2-D f64 array (shape[0], shape[1], flat row-major data).

Fields

§rows: usize
§cols: usize
§data: Vec<f64>
§

String(String)

A string value.

§

HomoLumo

Four values: two floats and two ints (HOMO/LUMO).

Fields

§homo: f64
§lumo: f64
§homo_idx: i32
§lumo_idx: i32
§

EnergyComponents

Five floats (energy components).

Fields

§e_kin: f64
§e_hartree: f64
§e_xc: f64
§e_core: f64
§e_total: f64
§

ScfInfo

SCF info: steps, converged, energy_change.

Fields

§nsteps: i32
§converged: bool
§energy_change: f64
§

GridInfo

Grid metadata for the electron density.

Fields

§npts: [i32; 3]
§origin: [f64; 3]
§dh: [[f64; 3]; 3]
§

SharedArray3

Large array data stored in POSIX shared memory (3D).

Fields

§shm_name: String
§dims: [usize; 3]
§byte_size: usize
§

SharedArray2

Large array data stored in POSIX shared memory (2D).

Fields

§shm_name: String
§rows: usize
§cols: usize
§byte_size: usize
§

MoCoeffInfo

MO coefficient dimensions.

Fields

§nao: usize
§nmo: usize

Trait Implementations§

Source§

impl Debug for Payload

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Payload

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for Payload

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> Ungil for T
where T: Send,