[−][src]Struct juno::JunoModule
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]
protocol: BaseProtocol,
connection: Box<dyn BaseConnection + Send + Sync>
) -> Self
pub async fn initialize<'_, '_, '_>(
&'_ mut self,
module_id: &'_ str,
version: &'_ str,
dependencies: HashMap<String, String>
) -> Result<()>
[src]
&'_ mut self,
module_id: &'_ str,
version: &'_ str,
dependencies: HashMap<String, String>
) -> Result<()>
pub async fn declare_function<'_, '_>(
&'_ mut self,
fn_name: &'_ str,
function: fn(_: HashMap<String, Value>) -> Value
) -> Result<()>
[src]
&'_ mut self,
fn_name: &'_ str,
function: fn(_: HashMap<String, Value>) -> Value
) -> Result<()>
pub async fn call_function<'_, '_>(
&'_ mut self,
fn_name: &'_ str,
args: HashMap<String, Value>
) -> Result<Value>
[src]
&'_ mut self,
fn_name: &'_ str,
args: HashMap<String, Value>
) -> Result<Value>
pub async fn register_hook<'_, '_>(
&'_ mut self,
hook: &'_ str,
callback: fn(_: Value)
) -> Result<()>
[src]
&'_ mut self,
hook: &'_ str,
callback: fn(_: Value)
) -> Result<()>
pub async fn trigger_hook<'_, '_>(&'_ mut self, hook: &'_ str) -> Result<()>
[src]
pub async fn close<'_>(&'_ mut self)
[src]
Auto Trait Implementations
impl !RefUnwindSafe for JunoModule
impl Send for JunoModule
impl Sync for JunoModule
impl Unpin for JunoModule
impl !UnwindSafe for JunoModule
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,