pub struct DirectiveError(pub String);Expand description
A directive registration failure: an unusable name, a duplicate open token, or a grammar that the engine refused to install.
The TypeScript plugin throws for the last two (it does not validate
the name); the Rust port returns them, exactly as the Go port does. The plugin itself never panics — a panic
raised inside a user callback is contained by the engine and surfaces
as a PluginError.
Tuple Fields§
§0: StringTrait Implementations§
Source§impl Clone for DirectiveError
impl Clone for DirectiveError
Source§impl Debug for DirectiveError
impl Debug for DirectiveError
Source§impl Display for DirectiveError
impl Display for DirectiveError
impl Eq for DirectiveError
Source§impl Error for DirectiveError
impl Error for DirectiveError
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<DirectiveError> for PluginError
impl From<DirectiveError> for PluginError
Source§fn from(error: DirectiveError) -> Self
fn from(error: DirectiveError) -> Self
Converts to this type from the input type.
Source§impl From<PluginError> for DirectiveError
impl From<PluginError> for DirectiveError
Source§fn from(error: PluginError) -> Self
fn from(error: PluginError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DirectiveError
impl PartialEq for DirectiveError
impl StructuralPartialEq for DirectiveError
Auto Trait Implementations§
impl Forget for DirectiveError
impl Freeze for DirectiveError
impl Move for DirectiveError
impl RefUnwindSafe for DirectiveError
impl Send for DirectiveErrorwhere
RawVecInner: Send,
impl Sync for DirectiveErrorwhere
RawVecInner: Sync,
impl Unpin for DirectiveError
impl UnsafeUnpin for DirectiveError
impl UnwindSafe for DirectiveErrorwhere
RawVecInner: UnwindSafe,
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.