Lines Matching refs:map_err
55 let kill_evt = Event::new().map_err(Error::CreateKillEvent)?; in new()
57 let tap: T = T::new(true, false).map_err(Error::TapOpen)?; in new()
58 tap.set_ip_addr(ip_addr).map_err(Error::TapSetIp)?; in new()
59 tap.set_netmask(netmask).map_err(Error::TapSetNetmask)?; in new()
61 .map_err(Error::TapSetMacAddress)?; in new()
67 .map_err(Error::TapSetOffload)?; in new()
72 .map_err(Error::TapSetVnetHdrSize)?; in new()
74 tap.enable().map_err(Error::TapEnable)?; in new()
75 let vhost_net_handle = U::new(vhost_net_device_path, mem).map_err(Error::VhostOpen)?; in new()
91 vhost_interrupt.push(Event::new().map_err(Error::VhostIrqCreate)?); in new()
94 let (request_tube, response_tube) = Tube::pair().map_err(Error::CreateTube)?; in new()
97 workers_kill_evt: Some(kill_evt.try_clone().map_err(Error::CloneKillEvent)?), in new()
229 .map_err(Error::VhostNetSetBackend)?; in activate()
237 .map_err(Error::VhostNetSetBackend)?; in activate()