pub enum VsyncSourceRequest {
SetVsyncEnabled {
enabled: bool,
control_handle: VsyncSourceControlHandle,
},
}Variants§
SetVsyncEnabled
Enables or disables receiving OnVsync for the given display.
The client receives OnVsync callbacks iff this function is called with enabled=true.
Calling this with enabled=false stops generating callbacks. Note that there may be a
race with a server receiving this and extra OnVsync may be received.
By default, the listener is assumed to have called enabled=false.
Implementations§
Source§impl VsyncSourceRequest
impl VsyncSourceRequest
pub fn into_set_vsync_enabled(self) -> Option<(bool, VsyncSourceControlHandle)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VsyncSourceRequest
impl !RefUnwindSafe for VsyncSourceRequest
impl Send for VsyncSourceRequest
impl Sync for VsyncSourceRequest
impl Unpin for VsyncSourceRequest
impl !UnwindSafe for VsyncSourceRequest
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