Struct x11rb_protocol::protocol::composite::UnredirectWindowRequest
source · pub struct UnredirectWindowRequest {
pub window: Window,
pub update: Redirect,
}
Expand description
Terminate redirection of the specified window..
Redirection of the specified window will be terminated. This cannot be used if the window was redirected with RedirectSubwindows.
§Fields
window
- The window to terminate redirection of. Must be redirected by the current client, or a Value error results.update
- The update type passed to RedirectWindows. If this does not match the previously requested update type, a Value error results.
Fields§
§window: Window
§update: Redirect
Implementations§
source§impl UnredirectWindowRequest
impl UnredirectWindowRequest
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 UnredirectWindowRequest
impl Clone for UnredirectWindowRequest
source§fn clone(&self) -> UnredirectWindowRequest
fn clone(&self) -> UnredirectWindowRequest
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 UnredirectWindowRequest
impl Debug for UnredirectWindowRequest
source§impl Default for UnredirectWindowRequest
impl Default for UnredirectWindowRequest
source§fn default() -> UnredirectWindowRequest
fn default() -> UnredirectWindowRequest
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for UnredirectWindowRequest
impl<'de> Deserialize<'de> for UnredirectWindowRequest
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 UnredirectWindowRequest
impl Hash for UnredirectWindowRequest
source§impl Ord for UnredirectWindowRequest
impl Ord for UnredirectWindowRequest
source§fn cmp(&self, other: &UnredirectWindowRequest) -> Ordering
fn cmp(&self, other: &UnredirectWindowRequest) -> 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 UnredirectWindowRequest
impl PartialEq for UnredirectWindowRequest
source§fn eq(&self, other: &UnredirectWindowRequest) -> bool
fn eq(&self, other: &UnredirectWindowRequest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for UnredirectWindowRequest
impl PartialOrd for UnredirectWindowRequest
source§fn partial_cmp(&self, other: &UnredirectWindowRequest) -> Option<Ordering>
fn partial_cmp(&self, other: &UnredirectWindowRequest) -> 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 UnredirectWindowRequest
impl Request for UnredirectWindowRequest
source§impl Serialize for UnredirectWindowRequest
impl Serialize for UnredirectWindowRequest
impl Copy for UnredirectWindowRequest
impl Eq for UnredirectWindowRequest
impl StructuralPartialEq for UnredirectWindowRequest
impl VoidRequest for UnredirectWindowRequest
Auto Trait Implementations§
impl Freeze for UnredirectWindowRequest
impl RefUnwindSafe for UnredirectWindowRequest
impl Send for UnredirectWindowRequest
impl Sync for UnredirectWindowRequest
impl Unpin for UnredirectWindowRequest
impl UnwindSafe for UnredirectWindowRequest
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