pub enum ObsError {
Show 26 variants
Failure,
MutexFailure,
ThreadFailure,
ResetVideoFailure(ObsResetVideoStatus),
ResetVideoFailureGraphicsModule,
ResetVideoFailureOutputActive,
NullPointer,
OutputAlreadyActive,
OutputStartFailure(Option<String>),
OutputStopFailure(Option<String>),
OutputPauseFailure(Option<String>),
OutputNotFound,
SourceNotFound,
SourceNotAvailable(String),
InvalidOperation(String),
StringConversionError,
DisplayCreationError(String),
OutputSaveBufferFailure(String),
InvocationError(String),
JsonParseError,
NoSenderError,
NoAvailableEncoders,
LockError(String),
Unexpected(String),
EncoderActive,
PlatformInitError(String),
}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.
ResetVideoFailureGraphicsModule
Unable to reset video because the program attempted to change the graphics module. This is a bug!
ResetVideoFailureOutputActive
Unable to reset video because some outputs were still active.
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>)
OutputPauseFailure(Option<String>)
OutputNotFound
SourceNotFound
SourceNotAvailable(String)
InvalidOperation(String)
StringConversionError
Error converting a string between Rust and OBS
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
NoAvailableEncoders
LockError(String)
Error locking a mutex or RwLock
Unexpected(String)
EncoderActive
Encoder is still active, stop the attached output before proceeding
PlatformInitError(String)
Error during platform-specific initialization