Struct x11rb_async::protocol::shm::AttachFdRequest
source · pub struct AttachFdRequest {
pub shmseg: u32,
pub shm_fd: RawFdContainer,
pub read_only: bool,
}Fields§
§shmseg: u32§shm_fd: RawFdContainer§read_only: boolImplementations§
source§impl AttachFdRequest
impl AttachFdRequest
sourcepub fn serialize(
self,
major_opcode: u8
) -> (Vec<Cow<'static, [u8]>, Global>, Vec<RawFdContainer, Global>)
pub fn serialize( self, major_opcode: u8 ) -> (Vec<Cow<'static, [u8]>, Global>, Vec<RawFdContainer, Global>)
Serialize this request into bytes for the provided connection
sourcepub fn try_parse_request_fd(
header: RequestHeader,
value: &[u8],
fds: &mut Vec<RawFdContainer, Global>
) -> Result<AttachFdRequest, ParseError>
pub fn try_parse_request_fd( header: RequestHeader, value: &[u8], fds: &mut Vec<RawFdContainer, Global> ) -> Result<AttachFdRequest, ParseError>
Parse this request given its header, its body, and any fds that go along with it
Trait Implementations§
source§impl Debug for AttachFdRequest
impl Debug for AttachFdRequest
source§impl PartialEq<AttachFdRequest> for AttachFdRequest
impl PartialEq<AttachFdRequest> for AttachFdRequest
source§fn eq(&self, other: &AttachFdRequest) -> bool
fn eq(&self, other: &AttachFdRequest) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Request for AttachFdRequest
impl Request for AttachFdRequest
source§const EXTENSION_NAME: Option<&'static str> = Some(X11_EXTENSION_NAME)
const EXTENSION_NAME: Option<&'static str> = Some(X11_EXTENSION_NAME)
The protocol name of the extension that this request belongs to, or None for core requests
impl Eq for AttachFdRequest
impl StructuralEq for AttachFdRequest
impl StructuralPartialEq for AttachFdRequest
impl VoidRequest for AttachFdRequest
Auto Trait Implementations§
impl RefUnwindSafe for AttachFdRequest
impl Send for AttachFdRequest
impl Sync for AttachFdRequest
impl Unpin for AttachFdRequest
impl UnwindSafe for AttachFdRequest
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