pub fn attach<Conn>(
conn: &Conn,
shmseg: Seg,
shmid: u32,
read_only: bool,
) -> Result<VoidCookie<'_, Conn>, ConnectionError>where
Conn: RequestConnection + ?Sized,
Expand description
Attach a System V shared memory segment..
Attach a System V shared memory segment to the server. This will fail unless the server has permission to map the segment. The client may destroy the segment as soon as it receives a XCB_SHM_COMPLETION event with the shmseg value in this request and with the appropriate serial number.
ยงFields
shmseg
- A shared memory segment ID created with xcb_generate_id().shmid
- The System V shared memory segment the server should map.read_only
- True if the segment shall be mapped read only by the X11 server, otherwise false.