pub enum RemoteError {
Remoc(CallError),
Plugin(String),
}Expand description
reaction-plugin’s Error type.
Variants§
Remoc(CallError)
A connection error that origins from remoc, the crate used for communication on the plugin’s stdin/stdout.
You should not instantiate this type of error yourself.
Plugin(String)
A free String for application-specific errors.
You should only instantiate this type of error yourself, for any error that you encounter at startup and shutdown.
Otherwise, any error during the plugin’s runtime should be logged to stderr, see crate for error handling recommandations.
Trait Implementations§
Source§impl Debug for RemoteError
impl Debug for RemoteError
Source§impl<'de> Deserialize<'de> for RemoteError
impl<'de> Deserialize<'de> for RemoteError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for RemoteError
impl Display for RemoteError
Source§impl Error for RemoteError
impl Error for RemoteError
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<&str> for RemoteError
impl From<&str> for RemoteError
Source§impl From<CallError> for RemoteError
impl From<CallError> for RemoteError
Source§impl From<String> for RemoteError
impl From<String> for RemoteError
Auto Trait Implementations§
impl Freeze for RemoteError
impl !RefUnwindSafe for RemoteError
impl Send for RemoteError
impl Sync for RemoteError
impl Unpin for RemoteError
impl !UnwindSafe for RemoteError
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