#[non_exhaustive]pub enum InstallPluginsReturn {
Success,
NotFound,
Error,
PartialSuccess,
UserAbort,
Crashed,
Invalid,
StartedOk,
InternalFailure,
HelperMissing,
InstallInProgress,
}
Expand description
Result codes returned by gst_install_plugins_async()
and
gst_install_plugins_sync()
, and also the result code passed to the
GstInstallPluginsResultFunc
specified with gst_install_plugins_async()
.
These codes indicate success or failure of starting an external installer program and to what extent the requested plugins could be installed.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Success
all of the requested plugins could be installed
NotFound
no appropriate installation candidate for
any of the requested plugins could be found. Only return this if nothing
has been installed. Return PartialSuccess
if
some (but not all) of the requested plugins could be installed.
Error
an error occurred during the installation. If this happens, the user has already seen an error message and another one should not be displayed
PartialSuccess
some of the requested plugins could be installed, but not all
UserAbort
the user has aborted the installation
Crashed
the installer had an unclean exit code (ie. death by signal)
Invalid
the helper returned an invalid status code
StartedOk
returned by gst_install_plugins_async()
to
indicate that everything went fine so far and the provided callback
will be called with the result of the installation later
InternalFailure
some internal failure has occurred when trying to start the installer
HelperMissing
the helper script to call the actual installer is not installed
InstallInProgress
a previously-started plugin installation is still in progress, try again later
Implementations§
Trait Implementations§
source§impl Clone for InstallPluginsReturn
impl Clone for InstallPluginsReturn
source§fn clone(&self) -> InstallPluginsReturn
fn clone(&self) -> InstallPluginsReturn
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for InstallPluginsReturn
impl Debug for InstallPluginsReturn
source§impl Display for InstallPluginsReturn
impl Display for InstallPluginsReturn
source§impl From<InstallPluginsReturn> for Value
impl From<InstallPluginsReturn> for Value
source§fn from(v: InstallPluginsReturn) -> Self
fn from(v: InstallPluginsReturn) -> Self
source§impl<'a> FromValue<'a> for InstallPluginsReturn
impl<'a> FromValue<'a> for InstallPluginsReturn
§type Checker = GenericValueTypeChecker<InstallPluginsReturn>
type Checker = GenericValueTypeChecker<InstallPluginsReturn>
source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Value
. Read moresource§impl HasParamSpec for InstallPluginsReturn
impl HasParamSpec for InstallPluginsReturn
type ParamSpec = ParamSpecEnum
§type SetValue = InstallPluginsReturn
type SetValue = InstallPluginsReturn
type BuilderFn = fn(_: &str, _: InstallPluginsReturn) -> ParamSpecEnumBuilder<'_, InstallPluginsReturn>
fn param_spec_builder() -> Self::BuilderFn
source§impl Hash for InstallPluginsReturn
impl Hash for InstallPluginsReturn
source§impl Ord for InstallPluginsReturn
impl Ord for InstallPluginsReturn
source§fn cmp(&self, other: &InstallPluginsReturn) -> Ordering
fn cmp(&self, other: &InstallPluginsReturn) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for InstallPluginsReturn
impl PartialEq for InstallPluginsReturn
source§fn eq(&self, other: &InstallPluginsReturn) -> bool
fn eq(&self, other: &InstallPluginsReturn) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for InstallPluginsReturn
impl PartialOrd for InstallPluginsReturn
source§fn partial_cmp(&self, other: &InstallPluginsReturn) -> Option<Ordering>
fn partial_cmp(&self, other: &InstallPluginsReturn) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl StaticType for InstallPluginsReturn
impl StaticType for InstallPluginsReturn
source§fn static_type() -> Type
fn static_type() -> Type
Self
.source§impl ToValue for InstallPluginsReturn
impl ToValue for InstallPluginsReturn
source§impl ValueType for InstallPluginsReturn
impl ValueType for InstallPluginsReturn
§type Type = InstallPluginsReturn
type Type = InstallPluginsReturn
Type
from. Read moreimpl Copy for InstallPluginsReturn
impl Eq for InstallPluginsReturn
impl StructuralPartialEq for InstallPluginsReturn
Auto Trait Implementations§
impl Freeze for InstallPluginsReturn
impl RefUnwindSafe for InstallPluginsReturn
impl Send for InstallPluginsReturn
impl Sync for InstallPluginsReturn
impl Unpin for InstallPluginsReturn
impl UnwindSafe for InstallPluginsReturn
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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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>
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>
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()
source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
SendValue
clone of self
.