pub struct CreateSegmentRequest {
pub shmseg: u32,
pub size: u32,
pub read_only: bool,
}
Expand description
Asks the server to allocate a shared memory segment..
Asks the server to allocate a shared memory segment. The server’s reply will include a file descriptor for the client to pass to mmap().
§Fields
shmseg
- A shared memory segment ID created with xcb_generate_id().size
- The size of the segment to create.read_only
- True if the server should map the segment read-only; otherwise false.
Fields§
§shmseg: u32
§size: u32
§read_only: bool
Implementations§
Trait Implementations§
source§impl Clone for CreateSegmentRequest
impl Clone for CreateSegmentRequest
source§fn clone(&self) -> CreateSegmentRequest
fn clone(&self) -> CreateSegmentRequest
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 CreateSegmentRequest
impl Debug for CreateSegmentRequest
source§impl Default for CreateSegmentRequest
impl Default for CreateSegmentRequest
source§fn default() -> CreateSegmentRequest
fn default() -> CreateSegmentRequest
Returns the “default value” for a type. Read more
source§impl ReplyFDsRequest for CreateSegmentRequest
impl ReplyFDsRequest for CreateSegmentRequest
source§type Reply = CreateSegmentReply
type Reply = CreateSegmentReply
The kind of reply that this request generates.
source§impl Request for CreateSegmentRequest
impl Request for CreateSegmentRequest
impl Copy for CreateSegmentRequest
Auto Trait Implementations§
impl Freeze for CreateSegmentRequest
impl RefUnwindSafe for CreateSegmentRequest
impl Send for CreateSegmentRequest
impl Sync for CreateSegmentRequest
impl Unpin for CreateSegmentRequest
impl UnwindSafe for CreateSegmentRequest
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
)