pub enum UdfRegistrationError {
InteriorNul,
MinimumExceedsMaximum,
NameInUse,
InvalidArgumentType,
InvalidReturnType,
NotFound,
Unknown(u32),
}Expand description
Why registering or removing a user-defined function failed.
Variants§
InteriorNul
The name or a type code contained a NUL byte.
MinimumExceedsMaximum
The signature’s minimum arity is greater than its maximum.
NameInUse
A function of that name is already registered.
InvalidArgumentType
An argument restriction contains an invalid type code.
InvalidReturnType
The return restriction contains an invalid type code.
NotFound
No function of that name is registered, reported when removing.
Unknown(u32)
A code this crate does not recognise.
Trait Implementations§
Source§impl Clone for UdfRegistrationError
impl Clone for UdfRegistrationError
Source§impl Debug for UdfRegistrationError
impl Debug for UdfRegistrationError
Source§impl Display for UdfRegistrationError
impl Display for UdfRegistrationError
impl Eq for UdfRegistrationError
Source§impl Error for UdfRegistrationError
impl Error for UdfRegistrationError
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<NulError> for UdfRegistrationError
impl From<NulError> for UdfRegistrationError
Source§impl PartialEq for UdfRegistrationError
impl PartialEq for UdfRegistrationError
impl StructuralPartialEq for UdfRegistrationError
Auto Trait Implementations§
impl Freeze for UdfRegistrationError
impl RefUnwindSafe for UdfRegistrationError
impl Send for UdfRegistrationError
impl Sync for UdfRegistrationError
impl Unpin for UdfRegistrationError
impl UnsafeUnpin for UdfRegistrationError
impl UnwindSafe for UdfRegistrationError
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