Struct x11rb_protocol::protocol::shm::AttachRequest
source · pub struct AttachRequest {
pub shmseg: Seg,
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: Seg
§shmid: u32
§read_only: bool
Implementations§
source§impl AttachRequest
impl AttachRequest
sourcepub fn serialize(self, major_opcode: u8) -> BufWithFds<[Cow<'static, [u8]>; 1]>
pub fn serialize(self, major_opcode: u8) -> BufWithFds<[Cow<'static, [u8]>; 1]>
Serialize this request into bytes for the provided connection
sourcepub fn try_parse_request(
header: RequestHeader,
value: &[u8]
) -> Result<Self, ParseError>
pub fn try_parse_request( header: RequestHeader, value: &[u8] ) -> Result<Self, ParseError>
Parse this request given its header, its body, and any fds that go along with it
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<'de> Deserialize<'de> for AttachRequest
impl<'de> Deserialize<'de> for AttachRequest
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for AttachRequest
impl Hash for AttachRequest
source§impl Ord for AttachRequest
impl Ord for AttachRequest
source§fn cmp(&self, other: &AttachRequest) -> Ordering
fn cmp(&self, other: &AttachRequest) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for AttachRequest
impl PartialEq for AttachRequest
source§fn eq(&self, other: &AttachRequest) -> bool
fn eq(&self, other: &AttachRequest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for AttachRequest
impl PartialOrd for AttachRequest
source§fn partial_cmp(&self, other: &AttachRequest) -> Option<Ordering>
fn partial_cmp(&self, other: &AttachRequest) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Request for AttachRequest
impl Request for AttachRequest
source§impl Serialize for AttachRequest
impl Serialize for AttachRequest
impl Copy for AttachRequest
impl Eq for AttachRequest
impl StructuralPartialEq 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