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).
String(String)
A string value.
HomoLumo
Four values: two floats and two ints (HOMO/LUMO).
EnergyComponents
Five floats (energy components).
ScfInfo
SCF info: steps, converged, energy_change.
GridInfo
Grid metadata for the electron density.
Large array data stored in POSIX shared memory (3D).
Large array data stored in POSIX shared memory (2D).
MoCoeffInfo
MO coefficient dimensions.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Payload
impl<'de> Deserialize<'de> for Payload
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Payload
impl RefUnwindSafe for Payload
impl Send for Payload
impl Sync for Payload
impl Unpin for Payload
impl UnsafeUnpin for Payload
impl UnwindSafe for Payload
Blanket Implementations§
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