pub struct ExclusiveAccess<'a>(/* private fields */);Expand description
Exclusive access to native CoolProp calls that must not overlap other calls.
This type intentionally does not implement DerefMut: exclusive access
is an execution mode, not permission to replace or mutate the loaded function table.
Methods from Deref<Target = CoolProp>§
pub unsafe fn Props1SI( &self, FluidName: *const c_char, Output: *const c_char, ) -> f64
pub unsafe fn Props1SImulti( &self, Outputs: *const c_char, backend: *mut c_char, FluidNames: *const c_char, fractions: *const f64, length_fractions: c_long, result: *mut f64, resdim1: *mut c_long, )
pub unsafe fn PropsSI( &self, Output: *const c_char, Name1: *const c_char, Prop1: f64, Name2: *const c_char, Prop2: f64, FluidName: *const c_char, ) -> f64
pub unsafe fn PropsSImulti( &self, Outputs: *const c_char, Name1: *const c_char, Prop1: *mut f64, size_Prop1: c_long, Name2: *const c_char, Prop2: *mut f64, size_Prop2: c_long, backend: *mut c_char, FluidNames: *const c_char, fractions: *const f64, length_fractions: c_long, result: *mut f64, resdim1: *mut c_long, resdim2: *mut c_long, )
pub unsafe fn PhaseSI( &self, Name1: *const c_char, Prop1: f64, Name2: *const c_char, Prop2: f64, FluidName: *const c_char, phase: *mut c_char, n: c_int, ) -> c_long
pub unsafe fn get_global_param_string( &self, param: *const c_char, Output: *mut c_char, n: c_int, ) -> c_long
pub unsafe fn get_parameter_information_string( &self, param: *const c_char, Output: *mut c_char, n: c_int, ) -> c_long
pub unsafe fn get_fluid_param_string( &self, fluid: *const c_char, param: *const c_char, Output: *mut c_char, n: c_int, ) -> c_long
pub unsafe fn get_fluid_param_string_len( &self, fluid: *const c_char, param: *const c_char, ) -> c_long
pub unsafe fn set_config_string(&self, key: *const c_char, val: *const c_char)
pub unsafe fn set_config_double(&self, key: *const c_char, val: f64)
pub unsafe fn set_config_bool(&self, key: *const c_char, val: bool)
pub unsafe fn set_departure_functions( &self, string_data: *const c_char, errcode: *mut c_long, message_buffer: *mut c_char, buffer_length: c_long, )
pub unsafe fn set_reference_stateS( &self, Ref: *const c_char, reference_state: *const c_char, ) -> c_int
pub unsafe fn set_reference_stateD( &self, Ref: *const c_char, T: f64, rhomolar: f64, hmolar0: f64, smolar0: f64, ) -> c_int
pub unsafe fn propssi_( &self, Output: *const c_char, Name1: *const c_char, Prop1: *const f64, Name2: *const c_char, Prop2: *const f64, FluidName: *const c_char, output: *mut f64, )
pub unsafe fn F2K(&self, T_F: f64) -> f64
pub unsafe fn K2F(&self, T_K: f64) -> f64
pub unsafe fn get_param_index(&self, param: *const c_char) -> c_long
pub unsafe fn get_input_pair_index(&self, pair: *const c_char) -> c_long
pub unsafe fn redirect_stdout(&self, file: *const c_char) -> c_long
pub unsafe fn get_debug_level(&self) -> c_int
pub unsafe fn set_debug_level(&self, level: c_int)
pub unsafe fn saturation_ancillary( &self, fluid_name: *const c_char, output: *const c_char, Q: c_int, input: *const c_char, value: f64, ) -> f64
pub unsafe fn HAPropsSI( &self, Output: *const c_char, Name1: *const c_char, Prop1: f64, Name2: *const c_char, Prop2: f64, Name3: *const c_char, Prop3: f64, ) -> f64
pub unsafe fn cair_sat(&self, T: f64) -> f64
pub unsafe fn hapropssi_( &self, Output: *const c_char, Name1: *const c_char, Prop1: *const f64, Name2: *const c_char, Prop2: *const f64, Name3: *const c_char, Prop3: *const f64, output: *mut f64, )
pub unsafe fn HAProps( &self, Output: *const c_char, Name1: *const c_char, Prop1: f64, Name2: *const c_char, Prop2: f64, Name3: *const c_char, Prop3: f64, ) -> f64
pub unsafe fn haprops_( &self, Output: *const c_char, Name1: *const c_char, Prop1: *const f64, Name2: *const c_char, Prop2: *const f64, Name3: *const c_char, Prop3: *const f64, output: *mut f64, )
pub unsafe fn AbstractState_factory( &self, backend: *const c_char, fluids: *const c_char, errcode: *mut c_long, message_buffer: *mut c_char, buffer_length: c_long, ) -> c_long
pub unsafe fn AbstractState_fluid_names( &self, handle: c_long, fluids: *mut c_char, errcode: *mut c_long, message_buffer: *mut c_char, buffer_length: c_long, )
pub unsafe fn AbstractState_free( &self, handle: c_long, errcode: *mut c_long, message_buffer: *mut c_char, buffer_length: c_long, )
pub unsafe fn AbstractState_set_fractions( &self, handle: c_long, fractions: *const f64, N: c_long, errcode: *mut c_long, message_buffer: *mut c_char, buffer_length: c_long, )
pub unsafe fn AbstractState_get_mole_fractions( &self, handle: c_long, fractions: *mut f64, maxN: c_long, N: *mut c_long, errcode: *mut c_long, message_buffer: *mut c_char, buffer_length: c_long, )
pub unsafe fn AbstractState_get_mole_fractions_satState( &self, handle: c_long, saturated_state: *const c_char, fractions: *mut f64, maxN: c_long, N: *mut c_long, errcode: *mut c_long, message_buffer: *mut c_char, buffer_length: c_long, )
pub unsafe fn AbstractState_get_fugacity( &self, handle: c_long, i: c_long, errcode: *mut c_long, message_buffer: *mut c_char, buffer_length: c_long, ) -> f64
pub unsafe fn AbstractState_get_fugacity_coefficient( &self, handle: c_long, i: c_long, errcode: *mut c_long, message_buffer: *mut c_char, buffer_length: c_long, ) -> f64
pub unsafe fn AbstractState_update( &self, handle: c_long, input_pair: c_long, value1: f64, value2: f64, errcode: *mut c_long, message_buffer: *mut c_char, buffer_length: c_long, )
pub unsafe fn AbstractState_specify_phase( &self, handle: c_long, phase: *const c_char, errcode: *mut c_long, message_buffer: *mut c_char, buffer_length: c_long, )
pub unsafe fn AbstractState_unspecify_phase( &self, handle: c_long, errcode: *mut c_long, message_buffer: *mut c_char, buffer_length: c_long, )
pub unsafe fn AbstractState_keyed_output( &self, handle: c_long, param: c_long, errcode: *mut c_long, message_buffer: *mut c_char, buffer_length: c_long, ) -> f64
pub unsafe fn AbstractState_first_saturation_deriv( &self, handle: c_long, Of: c_long, Wrt: c_long, errcode: *mut c_long, message_buffer: *mut c_char, buffer_length: c_long, ) -> f64
pub unsafe fn AbstractState_first_partial_deriv( &self, handle: c_long, Of: c_long, Wrt: c_long, Constant: c_long, errcode: *mut c_long, message_buffer: *mut c_char, buffer_length: c_long, ) -> f64
pub unsafe fn AbstractState_second_two_phase_deriv( &self, handle: c_long, Of1: c_long, Wrt1: c_long, Constant1: c_long, Wrt2: c_long, Constant2: c_long, errcode: *mut c_long, message_buffer: *mut c_char, buffer_length: c_long, ) -> f64
pub unsafe fn AbstractState_second_partial_deriv( &self, handle: c_long, Of1: c_long, Wrt1: c_long, Constant1: c_long, Wrt2: c_long, Constant2: c_long, errcode: *mut c_long, message_buffer: *mut c_char, buffer_length: c_long, ) -> f64
pub unsafe fn AbstractState_first_two_phase_deriv_splined( &self, handle: c_long, Of: c_long, Wrt: c_long, Constant: c_long, x_end: f64, errcode: *mut c_long, message_buffer: *mut c_char, buffer_length: c_long, ) -> f64
pub unsafe fn AbstractState_first_two_phase_deriv( &self, handle: c_long, Of: c_long, Wrt: c_long, Constant: c_long, errcode: *mut c_long, message_buffer: *mut c_char, buffer_length: c_long, ) -> f64
pub unsafe fn AbstractState_update_and_common_out( &self, handle: c_long, input_pair: c_long, value1: *const f64, value2: *const f64, length: c_long, T: *mut f64, p: *mut f64, rhomolar: *mut f64, hmolar: *mut f64, smolar: *mut f64, errcode: *mut c_long, message_buffer: *mut c_char, buffer_length: c_long, )
pub unsafe fn AbstractState_update_and_1_out( &self, handle: c_long, input_pair: c_long, value1: *const f64, value2: *const f64, length: c_long, output: c_long, out: *mut f64, errcode: *mut c_long, message_buffer: *mut c_char, buffer_length: c_long, )
pub unsafe fn AbstractState_update_and_5_out( &self, handle: c_long, input_pair: c_long, value1: *const f64, value2: *const f64, length: c_long, outputs: *mut c_long, out1: *mut f64, out2: *mut f64, out3: *mut f64, out4: *mut f64, out5: *mut f64, errcode: *mut c_long, message_buffer: *mut c_char, buffer_length: c_long, )
pub unsafe fn AbstractState_set_binary_interaction_double( &self, handle: c_long, i: c_long, j: c_long, parameter: *const c_char, value: f64, errcode: *mut c_long, message_buffer: *mut c_char, buffer_length: c_long, )
pub unsafe fn AbstractState_set_cubic_alpha_C( &self, handle: c_long, i: c_long, parameter: *const c_char, c1: f64, c2: f64, c3: f64, errcode: *mut c_long, message_buffer: *mut c_char, buffer_length: c_long, )
pub unsafe fn AbstractState_set_fluid_parameter_double( &self, handle: c_long, i: c_long, parameter: *const c_char, value: f64, errcode: *mut c_long, message_buffer: *mut c_char, buffer_length: c_long, )
pub unsafe fn AbstractState_build_phase_envelope( &self, handle: c_long, level: *const c_char, errcode: *mut c_long, message_buffer: *mut c_char, buffer_length: c_long, )
pub unsafe fn AbstractState_get_phase_envelope_data( &self, handle: c_long, length: c_long, T: *mut f64, p: *mut f64, rhomolar_vap: *mut f64, rhomolar_liq: *mut f64, x: *mut f64, y: *mut f64, errcode: *mut c_long, message_buffer: *mut c_char, buffer_length: c_long, )
pub unsafe fn AbstractState_get_phase_envelope_data_checkedMemory( &self, handle: c_long, length: c_long, maxComponents: c_long, T: *mut f64, p: *mut f64, rhomolar_vap: *mut f64, rhomolar_liq: *mut f64, x: *mut f64, y: *mut f64, actual_length: *mut c_long, actual_components: *mut c_long, errcode: *mut c_long, message_buffer: *mut c_char, buffer_length: c_long, )
pub unsafe fn AbstractState_build_spinodal( &self, handle: c_long, errcode: *mut c_long, message_buffer: *mut c_char, buffer_length: c_long, )
pub unsafe fn AbstractState_get_spinodal_data( &self, handle: c_long, length: c_long, tau: *mut f64, delta: *mut f64, M1: *mut f64, errcode: *mut c_long, message_buffer: *mut c_char, buffer_length: c_long, )
pub unsafe fn AbstractState_all_critical_points( &self, handle: c_long, length: c_long, T: *mut f64, p: *mut f64, rhomolar: *mut f64, stable: *mut c_long, errcode: *mut c_long, message_buffer: *mut c_char, buffer_length: c_long, )
pub unsafe fn AbstractState_keyed_output_satState( &self, handle: c_long, saturated_state: *const c_char, param: c_long, errcode: *mut c_long, message_buffer: *mut c_char, buffer_length: c_long, ) -> f64
pub unsafe fn AbstractState_backend_name( &self, handle: c_long, backend: *mut c_char, errcode: *mut c_long, message_buffer: *mut c_char, buffer_length: c_long, )
pub unsafe fn AbstractState_fluid_param_string( &self, handle: c_long, param: *const c_char, return_buffer: *mut c_char, return_buffer_length: c_long, errcode: *mut c_long, message_buffer: *mut c_char, buffer_length: c_long, )
pub unsafe fn AbstractState_phase( &self, handle: c_long, errcode: *mut c_long, message_buffer: *mut c_char, buffer_length: c_long, ) -> c_int
pub unsafe fn AbstractState_saturated_liquid_keyed_output( &self, handle: c_long, param: c_long, errcode: *mut c_long, message_buffer: *mut c_char, buffer_length: c_long, ) -> f64
pub unsafe fn AbstractState_saturated_vapor_keyed_output( &self, handle: c_long, param: c_long, errcode: *mut c_long, message_buffer: *mut c_char, buffer_length: c_long, ) -> f64
pub unsafe fn add_fluids_as_JSON( &self, backend: *const c_char, fluidstring: *const c_char, errcode: *mut c_long, message_buffer: *mut c_char, buffer_length: c_long, )
pub unsafe fn C_is_valid_fluid_string(&self, fluidName: *const c_char) -> c_int
pub unsafe fn C_extract_backend( &self, fluid_string: *const c_char, backend: *mut c_char, backend_length: c_long, fluid: *mut c_char, fluid_length: c_long, ) -> c_int
Trait Implementations§
Auto Trait Implementations§
impl<'a> !Send for ExclusiveAccess<'a>
impl<'a> Freeze for ExclusiveAccess<'a>
impl<'a> RefUnwindSafe for ExclusiveAccess<'a>
impl<'a> Sync for ExclusiveAccess<'a>
impl<'a> Unpin for ExclusiveAccess<'a>
impl<'a> UnsafeUnpin for ExclusiveAccess<'a>
impl<'a> UnwindSafe for ExclusiveAccess<'a>
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