Struct x11rb_protocol::protocol::composite::RedirectWindowRequest
source · pub struct RedirectWindowRequest {
pub window: Window,
pub update: Redirect,
}
Expand description
Redirect the hierarchy starting at “window” to off-screen storage..
The hierarchy starting at ‘window’ is directed to off-screen storage. When all clients enabling redirection terminate, the redirection will automatically be disabled.
The root window may not be redirected. Doing so results in a Match error.
§Fields
window
- The root of the hierarchy to redirect to off-screen storage.update
- Whether contents are automatically mirrored to the parent window. If one client already specifies an update type of Manual, any attempt by another to specify a mode of Manual so will result in an Access error.
Fields§
§window: Window
§update: Redirect
Implementations§
source§impl RedirectWindowRequest
impl RedirectWindowRequest
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 RedirectWindowRequest
impl Clone for RedirectWindowRequest
source§fn clone(&self) -> RedirectWindowRequest
fn clone(&self) -> RedirectWindowRequest
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 RedirectWindowRequest
impl Debug for RedirectWindowRequest
source§impl Default for RedirectWindowRequest
impl Default for RedirectWindowRequest
source§fn default() -> RedirectWindowRequest
fn default() -> RedirectWindowRequest
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for RedirectWindowRequest
impl<'de> Deserialize<'de> for RedirectWindowRequest
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 RedirectWindowRequest
impl Hash for RedirectWindowRequest
source§impl Ord for RedirectWindowRequest
impl Ord for RedirectWindowRequest
source§fn cmp(&self, other: &RedirectWindowRequest) -> Ordering
fn cmp(&self, other: &RedirectWindowRequest) -> 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 RedirectWindowRequest
impl PartialEq for RedirectWindowRequest
source§fn eq(&self, other: &RedirectWindowRequest) -> bool
fn eq(&self, other: &RedirectWindowRequest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for RedirectWindowRequest
impl PartialOrd for RedirectWindowRequest
source§fn partial_cmp(&self, other: &RedirectWindowRequest) -> Option<Ordering>
fn partial_cmp(&self, other: &RedirectWindowRequest) -> 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 RedirectWindowRequest
impl Request for RedirectWindowRequest
source§impl Serialize for RedirectWindowRequest
impl Serialize for RedirectWindowRequest
impl Copy for RedirectWindowRequest
impl Eq for RedirectWindowRequest
impl StructuralPartialEq for RedirectWindowRequest
impl VoidRequest for RedirectWindowRequest
Auto Trait Implementations§
impl Freeze for RedirectWindowRequest
impl RefUnwindSafe for RedirectWindowRequest
impl Send for RedirectWindowRequest
impl Sync for RedirectWindowRequest
impl Unpin for RedirectWindowRequest
impl UnwindSafe for RedirectWindowRequest
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