Update rmp-ipc

Signed-off-by: trivernis <trivernis@protonmail.com>
pull/4/head
trivernis 3 years ago
parent 19efd2f7d7
commit 1769a54d53

@ -1411,9 +1411,9 @@ dependencies = [
[[package]] [[package]]
name = "rmp-ipc" name = "rmp-ipc"
version = "0.5.0" version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "20fd9347d94995cc197ef2267a8c6b82f4519d3cb5c333caf57edb1376077dd1" checksum = "fbd5082cefa9a4407327087d75dfadb5bf2d6f07168d0b609a2509f54fa3b243"
dependencies = [ dependencies = [
"lazy_static", "lazy_static",
"log", "log",

@ -1034,9 +1034,9 @@ dependencies = [
[[package]] [[package]]
name = "rmp-ipc" name = "rmp-ipc"
version = "0.5.0" version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "20fd9347d94995cc197ef2267a8c6b82f4519d3cb5c333caf57edb1376077dd1" checksum = "fbd5082cefa9a4407327087d75dfadb5bf2d6f07168d0b609a2509f54fa3b243"
dependencies = [ dependencies = [
"lazy_static", "lazy_static",
"log", "log",

@ -12,7 +12,7 @@ multibase = "0.9.1"
base64 = "0.13.0" base64 = "0.13.0"
toml = "0.5.8" toml = "0.5.8"
serde = "1.0.130" serde = "1.0.130"
rmp-ipc = "0.5.0" rmp-ipc = "0.6.0"
typemap_rev = "0.1.5" typemap_rev = "0.1.5"
image = "0.23.14" image = "0.23.14"
futures = "0.3.17" futures = "0.3.17"

@ -1267,9 +1267,9 @@ dependencies = [
[[package]] [[package]]
name = "rmp-ipc" name = "rmp-ipc"
version = "0.5.0" version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "20fd9347d94995cc197ef2267a8c6b82f4519d3cb5c333caf57edb1376077dd1" checksum = "fbd5082cefa9a4407327087d75dfadb5bf2d6f07168d0b609a2509f54fa3b243"
dependencies = [ dependencies = [
"lazy_static", "lazy_static",
"log", "log",

@ -1298,9 +1298,9 @@ dependencies = [
[[package]] [[package]]
name = "rmp-ipc" name = "rmp-ipc"
version = "0.5.0" version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "20fd9347d94995cc197ef2267a8c6b82f4519d3cb5c333caf57edb1376077dd1" checksum = "fbd5082cefa9a4407327087d75dfadb5bf2d6f07168d0b609a2509f54fa3b243"
dependencies = [ dependencies = [
"lazy_static", "lazy_static",
"log", "log",

@ -1310,9 +1310,9 @@ dependencies = [
[[package]] [[package]]
name = "rmp-ipc" name = "rmp-ipc"
version = "0.5.0" version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "20fd9347d94995cc197ef2267a8c6b82f4519d3cb5c333caf57edb1376077dd1" checksum = "fbd5082cefa9a4407327087d75dfadb5bf2d6f07168d0b609a2509f54fa3b243"
dependencies = [ dependencies = [
"lazy_static", "lazy_static",
"log", "log",

@ -13,16 +13,18 @@ use tokio::io::AsyncReadExt;
pub struct FilesNamespace; pub struct FilesNamespace;
impl NamespaceProvider for FilesNamespace { impl NamespaceProvider for FilesNamespace {
fn name() -> String { fn name() -> &'static str {
String::from("files") "files"
} }
fn register(handler: &mut EventHandler) { fn register(handler: &mut EventHandler) {
handler.on("all_files", callback!(Self::all_files)); events!(handler,
handler.on("add_file", callback!(Self::add_file)); "all_files" => Self::all_files,
handler.on("read_file", callback!(Self::read_file)); "add_file" => Self::add_file,
handler.on("get_thumbnails", callback!(Self::thumbnails)); "read_file" => Self::read_file,
handler.on("read_thumbnail", callback!(Self::read_thumbnail)); "get_thumbnails" => Self::thumbnails,
"read_thumbnail" => Self::read_thumbnail
);
} }
} }

Loading…
Cancel
Save