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]]
name = "rmp-ipc"
version = "0.5.0"
version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "20fd9347d94995cc197ef2267a8c6b82f4519d3cb5c333caf57edb1376077dd1"
checksum = "fbd5082cefa9a4407327087d75dfadb5bf2d6f07168d0b609a2509f54fa3b243"
dependencies = [
"lazy_static",
"log",

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

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

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

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

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

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

Loading…
Cancel
Save