pub struct MediaButtonsEventBuilder { /* private fields */ }
Expand description
Builder to simplify construction of fidl_fuchsia_ui_input::MediaButtonsEvent.
§Example usage:
MediaButtonsEventBuilder::new().set_mic_mute(true).build();
Implementations§
Source§impl MediaButtonsEventBuilder
impl MediaButtonsEventBuilder
pub fn new() -> Self
pub fn build(self) -> MediaButtonsEvent
pub fn set_mic_mute(self, mic_mute: bool) -> Self
pub fn set_camera_disable(self, camera_disable: bool) -> Self
Auto Trait Implementations§
impl Freeze for MediaButtonsEventBuilder
impl RefUnwindSafe for MediaButtonsEventBuilder
impl Send for MediaButtonsEventBuilder
impl Sync for MediaButtonsEventBuilder
impl Unpin for MediaButtonsEventBuilder
impl UnwindSafe for MediaButtonsEventBuilder
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