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
sourceimpl KillClientRequest
impl KillClientRequest
sourcepub fn serialize(self) -> BufWithFds<PiecewiseBuf<'static>>
pub fn serialize(self) -> BufWithFds<PiecewiseBuf<'static>>
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
sourceimpl Clone for KillClientRequest
impl Clone for KillClientRequest
sourcefn clone(&self) -> KillClientRequest
fn clone(&self) -> KillClientRequest
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for KillClientRequest
impl Debug for KillClientRequest
sourceimpl Default for KillClientRequest
impl Default for KillClientRequest
sourcefn default() -> KillClientRequest
fn default() -> KillClientRequest
Returns the “default value” for a type. Read more
sourceimpl Hash for KillClientRequest
impl Hash for KillClientRequest
sourceimpl Ord for KillClientRequest
impl Ord for KillClientRequest
sourceimpl PartialEq<KillClientRequest> for KillClientRequest
impl PartialEq<KillClientRequest> for KillClientRequest
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &KillClientRequest) -> bool
fn ne(&self, other: &KillClientRequest) -> bool
This method tests for !=
.
sourceimpl PartialOrd<KillClientRequest> for KillClientRequest
impl PartialOrd<KillClientRequest> for KillClientRequest
sourcefn partial_cmp(&self, other: &KillClientRequest) -> Option<Ordering>
fn partial_cmp(&self, other: &KillClientRequest) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
sourceimpl Request for KillClientRequest
impl Request for KillClientRequest
impl Copy for KillClientRequest
impl Eq for KillClientRequest
impl StructuralEq for KillClientRequest
impl StructuralPartialEq for KillClientRequest
impl VoidRequest for KillClientRequest
Auto Trait Implementations
impl RefUnwindSafe for KillClientRequest
impl Send for KillClientRequest
impl Sync for KillClientRequest
impl Unpin for KillClientRequest
impl UnwindSafe for KillClientRequest
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more