pub struct Camera3Service { /* private fields */ }Implementations§
Source§impl Camera3Service
impl Camera3Service
pub fn new(has_camera_device: bool) -> Self
pub fn new_delayed_devices(delay_camera_device: bool) -> Self
Sourcepub fn camera_sw_muted(&self) -> bool
pub fn camera_sw_muted(&self) -> bool
Returns whether all camera devices are software muted.
Sourcepub fn watch_sw_mute_changes(&self) -> UnboundedReceiver<bool>
pub fn watch_sw_mute_changes(&self) -> UnboundedReceiver<bool>
Returns a receiver that is sent whether all camera devices are software muted whenever a
SetSoftwareMuteState request is handled.
Sourcepub fn set_camera_sw_muted(&self, muted: bool)
pub fn set_camera_sw_muted(&self, muted: bool)
Sets the software mute state of all camera devices as if it were changed by another
client of the camera, and notifies pending WatchMuteState calls.
Sourcepub fn add_camera_device(&self, id: u64, sw_muted: bool)
pub fn add_camera_device(&self, id: u64, sw_muted: bool)
Adds a camera device with the given id and software mute state, and reports it as added to device watcher connections that have already received the initial device list.
Sourcepub fn remove_camera_device(&self, id: u64)
pub fn remove_camera_device(&self, id: u64)
Removes the camera device with the given id, closes its connections, and reports it as removed to device watcher connections that have already received the initial device list.
Trait Implementations§
Source§impl Service for Camera3Service
impl Service for Camera3Service
Source§fn can_handle_service(&self, service_name: &str) -> bool
fn can_handle_service(&self, service_name: &str) -> bool
Returns true if this service can process the given service name, false
otherwise.
Auto Trait Implementations§
impl !RefUnwindSafe for Camera3Service
impl !Send for Camera3Service
impl !Sync for Camera3Service
impl !UnwindSafe for Camera3Service
impl Freeze for Camera3Service
impl Unpin for Camera3Service
impl UnsafeUnpin for Camera3Service
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
fn fidl_into_native(self) -> Box<N>
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more