pub trait RequestDataExt: Send + Sync {
// Required methods
fn app_id(&self) -> Option<&str>;
fn seat_and_serial(&self) -> Option<(&WlSeat, u32)>;
fn surface(&self) -> Option<&WlSurface>;
}Expand description
Data attached to a token request
Required Methods§
Sourcefn seat_and_serial(&self) -> Option<(&WlSeat, u32)>
fn seat_and_serial(&self) -> Option<(&WlSeat, u32)>
Seat and serial of the window requesting the token, if applicable.
Warning: Many compositors will issue invalid tokens for requests without recent serials. There is no way to detect this from the client-side.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".