TraitCallMessage

Trait TraitCallMessage 

Source
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§

Source

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§

Source

fn get_fun_name(&self) -> String

Returns the called functions name.

Source

fn get_trait_name(&self) -> Option<String>

Returns the name of the trait the function is called from.

Source

fn get_params(&self) -> Vec<Self::Representation>

Returns the parameters (or arguments) of the function call.

Source

fn new_params(&mut self, p: Vec<Self::Representation>)

Replaces the parameters currently stored in this TraitCallMessage object.

Implementors§