pub enum ObsSimpleError {
WrapperError(ObsError),
FeatureNotAvailable(&'static str),
DisplayInfoError(DIError),
WindowHelperError(WindowHelperError),
}Expand description
Error type for libobs-simple operations.
Variants§
WrapperError(ObsError)
The underlying libobs-wrapper error
FeatureNotAvailable(&'static str)
Feature is not available on this system
DisplayInfoError(DIError)
Error from display-info crate
WindowHelperError(WindowHelperError)
Available on crate feature
window-list only.Error from window helper
Trait Implementations§
Source§impl Debug for ObsSimpleError
impl Debug for ObsSimpleError
Source§impl Display for ObsSimpleError
impl Display for ObsSimpleError
Source§impl Error for ObsSimpleError
impl Error for ObsSimpleError
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()
Source§impl From<ObsError> for ObsSimpleError
impl From<ObsError> for ObsSimpleError
Source§impl From<WindowHelperError> for ObsSimpleError
Available on crate feature window-list only.
impl From<WindowHelperError> for ObsSimpleError
Available on crate feature
window-list only.Source§fn from(err: WindowHelperError) -> Self
fn from(err: WindowHelperError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ObsSimpleError
impl RefUnwindSafe for ObsSimpleError
impl Send for ObsSimpleError
impl Sync for ObsSimpleError
impl Unpin for ObsSimpleError
impl UnsafeUnpin for ObsSimpleError
impl UnwindSafe for ObsSimpleError
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