Trait runa_wayland_protocols::stable::presentation_time::wp_presentation::v1::RequestDispatch
source · pub trait RequestDispatch<Ctx> {
type Error;
type DestroyFut<'a>: Future<Output = Result<(), Self::Error>> + 'a
where Ctx: 'a;
type FeedbackFut<'a>: Future<Output = Result<(), Self::Error>> + 'a
where Ctx: 'a;
// Required methods
fn destroy<'a>(ctx: &'a mut Ctx, object_id: u32) -> Self::DestroyFut<'a>;
fn feedback<'a>(
ctx: &'a mut Ctx,
object_id: u32,
surface: Object,
callback: NewId
) -> Self::FeedbackFut<'a>;
}
Required Associated Types§
type Error
Required Methods§
sourcefn destroy<'a>(ctx: &'a mut Ctx, object_id: u32) -> Self::DestroyFut<'a>
fn destroy<'a>(ctx: &'a mut Ctx, object_id: u32) -> Self::DestroyFut<'a>
unbind from the presentation interface
Informs the server that the client will no longer be using this protocol object. Existing objects created by this object are not affected.
sourcefn feedback<'a>(
ctx: &'a mut Ctx,
object_id: u32,
surface: Object,
callback: NewId
) -> Self::FeedbackFut<'a>
fn feedback<'a>( ctx: &'a mut Ctx, object_id: u32, surface: Object, callback: NewId ) -> Self::FeedbackFut<'a>
request presentation feedback information
Request presentation feedback for the current content submission on the given surface. This creates a new presentation_feedback object, which will deliver the feedback information once. If multiple presentation_feedback objects are created for the same submission, they will all deliver the same information.
For details on what information is returned, see the presentation_feedback interface.