Home
last modified time | relevance | path

Searched refs:try_clone (Results 1 – 25 of 32) sorted by relevance

12

/external/crosvm/qcow_utils/src/
Dqcow_utils.rs113 let src_file_owned = src_file.try_clone(); in convert_to_qcow2()
117 let dst_file_owned = dst_file.try_clone(); in convert_to_qcow2()
139 let src_file_owned = src_file.try_clone(); in convert_to_raw()
143 let dst_file_owned = dst_file.try_clone(); in convert_to_raw()
/external/adhd/cras/client/libcras/src/
Dcras_server_socket.rs50 pub fn try_clone(&self) -> io::Result<CrasServerSocket> { in try_clone() method
51 let new_sock = self.socket.try_clone()?; in try_clone()
Dlibcras.rs315 self.server_socket.try_clone()?, in create_stream()
/external/crosvm/sys_util/src/
Deventfd.rs75 pub fn try_clone(&self) -> Result<EventFd> { in try_clone() method
128 let evt_clone = evt.try_clone().unwrap(); in clone()
Dtimerfd.rs163 guard.add_event_fd(deadline, self.fd.try_clone()?); in reset()
183 guard.add_event_fd(*deadline_ns, self.fd.try_clone()?); in wait()
Dfork.rs116 let evt_fd_fork = evt_fd.try_clone().expect("failed to clone EventFd"); in pid_diff()
Dsyslog.rs616 let syslog_file = file.try_clone().expect("error cloning shared memory file"); in syslog_file()
/external/crosvm/devices/src/
Dserial.rs140 evt_fd.try_clone().map_err(Error::CloneEventFd)?, in create_serial_device()
144 evt_fd.try_clone().map_err(Error::CloneEventFd)?, in create_serial_device()
147 evt_fd.try_clone().map_err(Error::CloneEventFd)?, in create_serial_device()
156 evt_fd.try_clone().map_err(Error::CloneEventFd)?, in create_serial_device()
469 Serial::new_out(intr_evt.try_clone().unwrap(), Box::new(serial_out.clone())); in serial_input()
Dpit.rs274 .and_then(|e| Ok((e.try_clone()?, e))) in new()
280 let evt = kill_evt.try_clone().map_err(PitError::CloneEventFd)?; in new()
838 pit: Pit::new(irqfd.try_clone().unwrap(), clock.clone()).unwrap(), in set_up()
/external/crosvm/msg_socket/tests/
Dtuple.rs15 let e1 = e0.try_clone().unwrap(); in sock_send_recv_tuple()
Dstruct.rs24 let e1 = e0.try_clone().unwrap(); in sock_send_recv_struct()
Denum.rs25 let e1 = e0.try_clone().unwrap(); in sock_send_recv_enum()
/external/crosvm/devices/src/utils/
Devent_loop.rs78 .and_then(|e| Ok((e.try_clone()?, e))) in start()
227 let (self_evt, evt) = match EventFd::new().and_then(|e| Ok((e.try_clone()?, e))) { in event_loop_test()
/external/crosvm/devices/src/virtio/
Drng.rs196 let (self_kill_evt, kill_evt) = match EventFd::new().and_then(|e| Ok((e.try_clone()?, e))) { in activate()
Dtpm.rs253 let (self_kill_evt, kill_evt) = match EventFd::new().and_then(|e| Ok((e.try_clone()?, e))) { in activate()
Dpmem.rs339 match EventFd::new().and_then(|e| Ok((e.try_clone()?, e))) { in activate()
Dballoon.rs331 let (self_kill_evt, kill_evt) = match EventFd::new().and_then(|e| Ok((e.try_clone()?, e))) { in activate()
Dp9.rs388 let (self_kill_evt, kill_evt) = match EventFd::new().and_then(|e| Ok((e.try_clone()?, e))) { in activate()
Dnet.rs360 workers_kill_evt: Some(kill_evt.try_clone().map_err(NetError::CloneKillEventFd)?), in from()
/external/crosvm/x86_64/src/
Dlib.rs363 exit_evt.try_clone().map_err(Error::CloneEventFd)?, in build_vm()
659 exit_evt.try_clone().map_err(Error::CloneEventFd)?, in setup_io_bus()
672 pit_evt.try_clone().map_err(Error::CloneEventFd)?, in setup_io_bus()
/external/crosvm/devices/src/virtio/vhost/
Dvsock.rs48 worker_kill_evt: Some(kill_evt.try_clone().map_err(Error::CloneKillEventFd)?), in new()
Dnet.rs85 workers_kill_evt: Some(kill_evt.try_clone().map_err(Error::CloneKillEventFd)?), in new()
/external/crosvm/src/plugin/
Dprocess.rs201 .try_clone() in create_vcpu()
205 .try_clone() in create_vcpu()
/external/crosvm/devices/src/usb/xhci/
Dring_buffer_controller.rs225 let event = match self.event.try_clone() { in on_event()
/external/crosvm/devices/src/virtio/gpu/
Dmod.rs725 let exit_evt = match self.exit_evt.try_clone() { in activate()
733 let (self_kill_evt, kill_evt) = match EventFd::new().and_then(|e| Ok((e.try_clone()?, e))) { in activate()

12