pub enum Device {
Microphone,
Speakers,
Camera,
}
๐Deprecated: The portal does not serve any purpose as nothing really can make use of it as is.
Expand description
The possible device to request access to.
Variantsยง
Microphone
๐Deprecated: The portal does not serve any purpose as nothing really can make use of it as is.
A microphone.
Speakers
๐Deprecated: The portal does not serve any purpose as nothing really can make use of it as is.
Speakers.
Camera
๐Deprecated: The portal does not serve any purpose as nothing really can make use of it as is.
A Camera.
Trait Implementationsยง
sourceยงimpl<'de> Deserialize<'de> for Device
impl<'de> Deserialize<'de> for Device
sourceยงfn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for Device
impl Eq for Device
impl StructuralPartialEq for Device
Auto Trait Implementationsยง
impl Freeze for Device
impl RefUnwindSafe for Device
impl Send for Device
impl Sync for Device
impl Unpin for Device
impl UnwindSafe for Device
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
sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
sourceยงunsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
๐ฌThis is a nightly-only experimental API. (
clone_to_uninit
)sourceยงimpl<'de, T> DynamicDeserialize<'de> for T
impl<'de, T> DynamicDeserialize<'de> for T
sourceยงtype Deserializer = PhantomData<T>
type Deserializer = PhantomData<T>
A DeserializeSeed implementation for this type.
sourceยงfn deserializer_for_signature<S>(
signature: S,
) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
fn deserializer_for_signature<S>( signature: S, ) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
Get a deserializer compatible with this signature.
sourceยงimpl<T> DynamicType for T
impl<T> DynamicType for T
sourceยงfn dynamic_signature(&self) -> Signature<'_>
fn dynamic_signature(&self) -> Signature<'_>
Get the signature for the implementing type. Read more