rustyphoenixgenericmock 1.8.1

This library provides mock backend for rusty_phoenix_socket. This is the C++ equivalent of [PhoenixGenericMock](https://cta-lapp.pages.in2p3.fr/PHOENIX_LIBS2/serialize-io/PhoenixGenericMock/)
Documentation
/***************************************
	Auteur : Pierre Aubert
	Mail : pierre.aubert@lapp.in2p3.fr
	Licence : CeCILL-C
****************************************/

///Abtract implementation of a mock
pub trait AbstractMockBackend<T> {
	///Create a AbstractMockBackend
	/// # Returns
	/// constructed AbstractMockBackend
	fn new() -> Self;
	///Get the current index of the AbstractMockBackend
	/// # Returns
	/// current index of the AbstractMockBackend
	fn get_current_index(&self) -> usize;
	///Say if the current mock is in MockRecord mode
	/// # Returns
	/// true if the current mock is in MockRecord mode, false otherwise
	fn get_is_mock_record(&self) -> bool;
	///Abstract method to get the current value
	/// # Parameters
	/// - `value` : current value of the mock
	fn get_current_value(&mut self, value: &mut T);
	///Abstract method to check the current value
	/// # Parameters
	/// - `value` : current value to be checked
	/// # Returns
	/// true if the current value corresponds to the given value
	fn check_current_value(&mut self, value: &T) -> bool;
	///Append the current in the mock file
	/// # Parameters
	/// - `value` - current value to be appended into the mock
	fn append(&mut self, value: &T);
	///Set the record mode in the mock
	/// # Parameters
	/// - `is_mock_record` - true if the mock is in record mode
	fn set_is_record(&mut self, is_mock_record: bool);
	///Set the filename of the mock
	/// # Parameters
	/// - `filename` - filename where to save/load the current mock
	fn set_filename(&mut self, filename: &String);
	///Close the mock
	fn close(&mut self);
}