mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
enable serde feature of bytes, modify struct WriteBlock using Bytes
This commit is contained in:
@@ -17,6 +17,7 @@ use parity_tokio_ipc::{
|
||||
};
|
||||
use serde_derive::{Deserialize, Serialize};
|
||||
use std::{collections::HashMap, sync::atomic::Ordering};
|
||||
use bytes::Bytes;
|
||||
#[cfg(not(windows))]
|
||||
use std::{fs::File, io::prelude::*};
|
||||
|
||||
@@ -63,7 +64,7 @@ pub enum FS {
|
||||
WriteBlock {
|
||||
id: i32,
|
||||
file_num: i32,
|
||||
data: Vec<u8>,
|
||||
data: Bytes,
|
||||
compressed: bool,
|
||||
},
|
||||
WriteDone {
|
||||
|
||||
Reference in New Issue
Block a user