Struct x11rb_protocol::protocol::xproto::KillClientRequest
source · pub struct KillClientRequest {
pub resource: u32,
}
Expand description
kills a client.
Forces a close down of the client that created the specified resource
.
§Fields
resource
- Any resource belonging to the client (for example a Window), used to identify the client connection.
The special value of XCB_KILL_ALL_TEMPORARY
, the resources of all clients
that have terminated in RetainTemporary
(TODO) are destroyed.
§Errors
Value
- The specifiedresource
does not exist.
§See
xkill
: program
Fields§
§resource: u32
Implementations§
source§impl KillClientRequest
impl KillClientRequest
sourcepub fn serialize(self) -> BufWithFds<[Cow<'static, [u8]>; 1]>
pub fn serialize(self) -> 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 KillClientRequest
impl Clone for KillClientRequest
source§fn clone(&self) -> KillClientRequest
fn clone(&self) -> KillClientRequest
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 KillClientRequest
impl Debug for KillClientRequest
source§impl Default for KillClientRequest
impl Default for KillClientRequest
source§fn default() -> KillClientRequest
fn default() -> KillClientRequest
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for KillClientRequest
impl<'de> Deserialize<'de> for KillClientRequest
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 KillClientRequest
impl Hash for KillClientRequest
source§impl Ord for KillClientRequest
impl Ord for KillClientRequest
source§fn cmp(&self, other: &KillClientRequest) -> Ordering
fn cmp(&self, other: &KillClientRequest) -> 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 KillClientRequest
impl PartialEq for KillClientRequest
source§fn eq(&self, other: &KillClientRequest) -> bool
fn eq(&self, other: &KillClientRequest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for KillClientRequest
impl PartialOrd for KillClientRequest
source§fn partial_cmp(&self, other: &KillClientRequest) -> Option<Ordering>
fn partial_cmp(&self, other: &KillClientRequest) -> 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 KillClientRequest
impl Request for KillClientRequest
source§impl Serialize for KillClientRequest
impl Serialize for KillClientRequest
impl Copy for KillClientRequest
impl Eq for KillClientRequest
impl StructuralPartialEq for KillClientRequest
impl VoidRequest for KillClientRequest
Auto Trait Implementations§
impl Freeze for KillClientRequest
impl RefUnwindSafe for KillClientRequest
impl Send for KillClientRequest
impl Sync for KillClientRequest
impl Unpin for KillClientRequest
impl UnwindSafe for KillClientRequest
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