pub enum CameraViewfinderState {
Loading,
Ready,
NoCameras,
Error,
}
Expand description
The possible states of a CameraViewfinder
.
Variants§
Loading
The viewfinder is still loading.
Ready
The viewfinder is ready for use.
NoCameras
The viewfinder could not find any cameras to use.
Error
The viewfinder had an error and is not usable.
Implementations§
Source§impl CameraViewfinderState
impl CameraViewfinderState
Sourcefn register_enum() -> Type
fn register_enum() -> Type
Registers the enum only once.
Trait Implementations§
Source§impl Clone for CameraViewfinderState
impl Clone for CameraViewfinderState
Source§fn clone(&self) -> CameraViewfinderState
fn clone(&self) -> CameraViewfinderState
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CameraViewfinderState
impl Debug for CameraViewfinderState
Source§impl Default for CameraViewfinderState
impl Default for CameraViewfinderState
Source§fn default() -> CameraViewfinderState
fn default() -> CameraViewfinderState
Returns the “default value” for a type. Read more
Source§impl From<CameraViewfinderState> for Value
impl From<CameraViewfinderState> for Value
Source§fn from(v: CameraViewfinderState) -> Self
fn from(v: CameraViewfinderState) -> Self
Converts to this type from the input type.
Source§impl From<ViewfinderState> for CameraViewfinderState
impl From<ViewfinderState> for CameraViewfinderState
Source§fn from(value: ViewfinderState) -> Self
fn from(value: ViewfinderState) -> Self
Converts to this type from the input type.
Source§impl<'a> FromValue<'a> for CameraViewfinderState
impl<'a> FromValue<'a> for CameraViewfinderState
Source§type Checker = GenericValueTypeChecker<CameraViewfinderState>
type Checker = GenericValueTypeChecker<CameraViewfinderState>
Value type checker.
Source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a
Value
. Read moreSource§impl HasParamSpec for CameraViewfinderState
impl HasParamSpec for CameraViewfinderState
type ParamSpec = ParamSpecEnum
Source§type SetValue = CameraViewfinderState
type SetValue = CameraViewfinderState
Preferred value to be used as setter for the associated ParamSpec.
type BuilderFn = fn(_: &str, _: CameraViewfinderState) -> ParamSpecEnumBuilder<'_, CameraViewfinderState>
fn param_spec_builder() -> Self::BuilderFn
Source§impl IntoGlib for CameraViewfinderState
impl IntoGlib for CameraViewfinderState
Source§impl PartialEq for CameraViewfinderState
impl PartialEq for CameraViewfinderState
Source§impl StaticType for CameraViewfinderState
impl StaticType for CameraViewfinderState
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.Source§impl ToValue for CameraViewfinderState
impl ToValue for CameraViewfinderState
Source§impl TryFromGlib<i32> for CameraViewfinderState
impl TryFromGlib<i32> for CameraViewfinderState
Source§impl ValueType for CameraViewfinderState
impl ValueType for CameraViewfinderState
Source§type Type = CameraViewfinderState
type Type = CameraViewfinderState
Type to get the
Type
from. Read moreimpl Copy for CameraViewfinderState
impl StructuralPartialEq for CameraViewfinderState
Auto Trait Implementations§
impl Freeze for CameraViewfinderState
impl RefUnwindSafe for CameraViewfinderState
impl Send for CameraViewfinderState
impl Sync for CameraViewfinderState
impl Unpin for CameraViewfinderState
impl UnwindSafe for CameraViewfinderState
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§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
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 moreSource§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
Source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
Source§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
Source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.