pub fn call_function_with_argument<ReturnType, Args>(
        &self,
        fn_name: &str,
        args: &Args,
    ) -> errors::Result<ReturnType>
    where
        Args: Serializable,
        ReturnType: Deserializable,
    {
        let message = args.serialize()?;
        let mut buffer = self.message_buffer()?;
        let ptr = buffer.write_message(&message);

        let buff = self.call_function_raw(fn_name, Some(ptr))?;
        drop(buffer);
        ReturnType::deserialize(&buff)
    }
/// Call a function exported by the plugin with a single argument
/// which will be serialized and sent to the plugin.
///
/// Deserialization of the return value depends on the type being known
/// at the call site.
Call a function exported by the plugin with a single argument
which will be serialized and sent to the plugin.

Deserialization of the return value depends on the type being known
at the call site.
Call a function exported by the plugin with a single argument which will be serialized and sent to the plugin . Deserialization of the return value depends on the type being known at the call site .
pub fn call_function_with_argument<ReturnType, Args>(
        &self,
        fn_name: &str,
        args: &Args,
    ) -> errors::Result<ReturnType>
    where
        Args: Serializable,
        ReturnType: Deserializable,
    {
        let message = args.serialize()?;
        let mut buffer = self.message_buffer()?;
        let ptr = buffer.write_message(&message);
        let buff = self.call_function_raw(fn_name, Some(ptr))?;
        drop(buffer);
        ReturnType::deserialize(&buff)
    }
pub fn call_function_with_argument < ReturnType , Args > ( & self , fn_name : & str , args : & Args , ) -> errors :: Result < ReturnType > where Args : Serializable , ReturnType : Deserializable , { let message = args . serialize ( ) ? ; let mut buffer = self . message_buffer ( ) ? ; let ptr = buffer . write_message ( & message ) ; let buff = self . call_function_raw ( fn_name , Some ( ptr ) ) ? ; drop ( buffer ) ; ReturnType :: deserialize ( & buff ) }
Call a function exported by the plugin with a single argument
which will be serialized and sent to the plugin.
Call a function exported by the plugin with a single argument which will be serialized and sent to the plugin .
&self
fn_name
&str
args
&Args