Lines Matching refs:Channel
131 pub(crate) struct Channel<D: Dispatcher> {
136 impl<D: Dispatcher> PartialEq for Channel<D> {
142 impl<D: Dispatcher> Eq for Channel<D> {}
144 impl<D: Dispatcher> fmt::Debug for Channel<D> {
146 writeln!(f, "Channel {{")?;
170 impl<D: Dispatcher> Channel<D> {
1030 let ports: Vec<Rc<Channel<D>>> = dispatcher
1033 .map(Channel::try_new_port)
1035 let ports: [Rc<Channel<D>>; PORT_COUNT] = ports
1099 let channel: Rc<Channel<D>> = unsafe { Channel::from_opaque_ptr(event.cookie) }
1102 // be converted back into a `Channel`. This should never
1110 fn handler(&mut self, channel: Rc<Channel<D>>, event: &trusty_sys::uevent) -> Result<()> {
1172 let connection_channel = Channel::try_new_connection(connection_handle, data)?;
1238 type Channel = super::Channel<super::SingleDispatcher<()>>;
1245 Channel::try_new_port(&PortCfg::new_raw(CString::try_new(&path[..]).unwrap())).err(),
1254 Channel::try_new_port(&cfg).err(),
1261 Channel::try_new_port(&cfg).err(),
1268 Channel::try_new_port(&cfg).err(),
1275 Channel::try_new_port(&cfg).err(),
1286 Channel::try_new_port(&cfg).err(),
1294 let mut channels: Vec<Rc<Channel>> = Vec::new();
1299 let channel = Channel::try_new_port(&cfg);
1304 Channel::try_new_port(&cfg).err(),
1313 let channel = Channel::try_new_port(&cfg);
1321 Channel::try_new_port(&cfg).err(),
1329 Channel::try_new_port(&cfg).err(),
1337 let mut channels: Vec<Rc<Channel>> = Vec::new();
1342 let channel = Channel::try_new_port(&cfg);