Lines Matching refs:Handle
53 pub struct Handle(handle_t); struct
62 impl Handle { implementation
92 rc.try_into().map(Handle).or(Err(TipcError::InvalidHandle)) in connect()
137 let mut handles: [Option<Handle>; MAX_MSG_HANDLES] = Default::default(); in recv()
151 handles: &mut [Option<Handle>], in recv_vectored() argument
195 handles[index] = Some(Handle(*raw_handle)); in recv_vectored()
209 pub fn send_vectored(&self, buffers: &[&[u8]], handles: &[Handle]) -> crate::Result<()> { in send_vectored()
366 impl Drop for Handle { implementation
379 handles: arrayvec::ArrayVec<Handle, MAX_MSG_HANDLES>,
390 fn serialize_handle(&mut self, handle: &'a Handle) -> Result<Self::Ok, Self::Error> { in serialize_handle()
391 self.handles.try_push(Handle(handle.as_raw_fd())).or(Err(TipcError::AllocError)) in serialize_handle()
468 use super::Handle;
483 const INVALID_IPC_HANDLE: Handle = Handle(-1);
530 Handle(USER_BASE_HANDLE + MAX_USER_HANDLES).wait(timeout).err(), in wait_negative()
536 Handle(USER_BASE_HANDLE + MAX_USER_HANDLES + 1).wait(timeout).err(), in wait_negative()
542 Handle(USER_BASE_HANDLE - 1).wait(timeout).err(), in wait_negative()
550 Handle(USER_BASE_HANDLE + i).wait(timeout).err(), in wait_negative()