pub struct AttachRequest {
pub shmseg: u32,
pub shmid: u32,
pub read_only: bool,
}
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.
Fields§
§shmseg: u32
§shmid: u32
§read_only: bool
Implementations§
Trait Implementations§
source§impl Clone for AttachRequest
impl Clone for AttachRequest
source§fn clone(&self) -> AttachRequest
fn clone(&self) -> AttachRequest
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AttachRequest
impl Debug for AttachRequest
source§impl Default for AttachRequest
impl Default for AttachRequest
source§fn default() -> AttachRequest
fn default() -> AttachRequest
Returns the “default value” for a type. Read more
source§impl Request for AttachRequest
impl Request for AttachRequest
impl Copy for AttachRequest
impl VoidRequest for AttachRequest
Auto Trait Implementations§
impl Freeze for AttachRequest
impl RefUnwindSafe for AttachRequest
impl Send for AttachRequest
impl Sync for AttachRequest
impl Unpin for AttachRequest
impl UnwindSafe for AttachRequest
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)