pub trait TraitCallMessage {
type Representation;
// Required methods
fn get_fun_name(&self) -> String;
fn get_trait_name(&self) -> Option<String>;
fn get_params(&self) -> Vec<Self::Representation>;
fn new_params(&mut self, p: Vec<Self::Representation>);
}Expand description
Needs to be implemented by all structs that are used to represent function calls that are sent through a sing I/O stream
Required Associated Types§
Sourcetype Representation
type Representation
The representation of rust data structures that is used internally to store the parameters. Usually also the type used by the I/O stream.
Required Methods§
Sourcefn get_fun_name(&self) -> String
fn get_fun_name(&self) -> String
Returns the called functions name.
Sourcefn get_trait_name(&self) -> Option<String>
fn get_trait_name(&self) -> Option<String>
Returns the name of the trait the function is called from.
Sourcefn get_params(&self) -> Vec<Self::Representation>
fn get_params(&self) -> Vec<Self::Representation>
Returns the parameters (or arguments) of the function call.
Sourcefn new_params(&mut self, p: Vec<Self::Representation>)
fn new_params(&mut self, p: Vec<Self::Representation>)
Replaces the parameters currently stored in this TraitCallMessage object.