Lines Matching defs:new
56 pub fn new(_session_id: u32, _channel_id: u32) -> Self {
58 transfer: HdcTransferBase::new(_session_id, _channel_id),
70 MAP.get_or_insert_with(|| Arc::new(Mutex::new(HashMap::new())))
78 map.insert((session_id, channel_id), Arc::new(Mutex::new(value)));
122 let mut result = String::new();
145 let mut file_manager = FileManager::new(local_path);
241 return Err(Error::new(ErrorKind::Other, "Other failed"));
279 return Err(Error::new(ErrorKind::Other, "There is no local and remote path"));
286 return Err(Error::new(ErrorKind::Other, "There is no remote path"));
314 return Err(Error::new(ErrorKind::Other, "Operation failed, because the source folder is empty."));
320 return Err(Error::new(ErrorKind::Other, err_msg));
327 let p = Path::new(path.as_str());
354 return Err(Error::new(ErrorKind::Other, "Other failed"));
384 return Err(Error::new(ErrorKind::Other, "Other failed"));
397 payload: Vec::<u8>::new(),
406 payload: Vec::<u8>::new(),
626 payload: Vec::<u8>::new(),