[][src]Struct juno::JunoModule

pub struct JunoModule { /* fields omitted */ }

Methods

impl JunoModule[src]

pub fn default(connection_path: &str) -> Self[src]

pub fn from_unix_socket(socket_path: &str) -> Self[src]

pub fn from_inet_socket(host: &str, port: u16) -> Self[src]

pub fn new(
    protocol: BaseProtocol,
    connection: Box<dyn BaseConnection + Send + Sync>
) -> Self
[src]

pub async fn initialize<'_, '_, '_>(
    &'_ mut self,
    module_id: &'_ str,
    version: &'_ str,
    dependencies: HashMap<String, String>
) -> Result<()>
[src]

pub async fn declare_function<'_, '_>(
    &'_ mut self,
    fn_name: &'_ str,
    function: fn(_: HashMap<String, Value>) -> Value
) -> Result<()>
[src]

pub async fn call_function<'_, '_>(
    &'_ mut self,
    fn_name: &'_ str,
    args: HashMap<String, Value>
) -> Result<Value>
[src]

pub async fn register_hook<'_, '_>(
    &'_ mut self,
    hook: &'_ str,
    callback: fn(_: Value)
) -> Result<()>
[src]

pub async fn trigger_hook<'_, '_>(&'_ mut self, hook: &'_ str) -> Result<()>[src]

pub async fn close<'_>(&'_ mut self)[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.