pub struct CommandPhoto(/* private fields */);Expand description
photo command — sent when a photo is about to be taken.
Implementations§
Source§impl CommandPhoto
impl CommandPhoto
Sourcepub fn format(&self) -> PhotoFormat
pub fn format(&self) -> PhotoFormat
File format of the photo that will be taken.
Sourcepub fn disable_flash(&mut self)
pub fn disable_flash(&mut self)
If called, no flash will be displayed.
Sourcepub fn set_camera_shader(&mut self, shader: Shader)
pub fn set_camera_shader(&mut self, shader: Shader)
Set camera shader that will be used for the photo and subsequent frames.
If you want to apply this just for the photo, be sure to set it back to its old value with CommandFrame::set_camera_shader.
Sourcepub fn clear_camera_shader(&mut self)
pub fn clear_camera_shader(&mut self)
Remove camera shader for the photo and subsequent frames.
If you want to go back to having a shader again after the photo, be sure to set it back to its old value with CommandFrame::set_camera_shader.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CommandPhoto
impl RefUnwindSafe for CommandPhoto
impl Send for CommandPhoto
impl Sync for CommandPhoto
impl Unpin for CommandPhoto
impl UnsafeUnpin for CommandPhoto
impl UnwindSafe for CommandPhoto
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