pub enum ObsError {
Show 17 variants
Failure,
MutexFailure,
ThreadFailure,
ResetVideoFailure(ObsResetVideoStatus),
BootstrapperFailure(ObsBootstrapError),
ResetVideoFailureGraphicsModule,
NullPointer,
OutputAlreadyActive,
OutputStartFailure(Option<String>),
OutputStopFailure(Option<String>),
OutputNotFound,
SourceNotFound,
DisplayCreationError(String),
OutputSaveBufferFailure(String),
InvocationError(String),
JsonParseError,
NoSenderError,
}
Expand description
Error type for OBS function calls.
Variants§
Failure
The obs_startup
function failed on libobs.
MutexFailure
Failed to lock mutex describing whether there is a thread using libobs or not. Report to crate maintainer.
ThreadFailure
Some or no thread is already using libobs. This is a bug!
ResetVideoFailure(ObsResetVideoStatus)
Unable to reset video.
BootstrapperFailure(ObsBootstrapError)
Unable to bootstrap OBS for downloading and installing
ResetVideoFailureGraphicsModule
Unable to reset video because the program attempted to change the graphics module. This is a bug!
NullPointer
The function returned a null pointer, often indicating an error with creating the object of the requested pointer.
OutputAlreadyActive
OutputStartFailure(Option<String>)
OutputStopFailure(Option<String>)
OutputNotFound
SourceNotFound
DisplayCreationError(String)
Native error from the Windows API when creating a display
OutputSaveBufferFailure(String)
InvocationError(String)
The obs thread couldn’t be called
JsonParseError
NoSenderError
Couldn’t get the sender of the signal
Trait Implementations§
Source§impl Error for ObsError
impl Error for ObsError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
impl Eq for ObsError
impl StructuralPartialEq for ObsError
Auto Trait Implementations§
impl Freeze for ObsError
impl RefUnwindSafe for ObsError
impl Send for ObsError
impl Sync for ObsError
impl Unpin for ObsError
impl UnwindSafe for ObsError
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.