pub struct SQLFunctionRegistration { /* private fields */ }Expand description
An identity-specific lease on a shared registration, independent of the
creating session. Dropping this handle releases the lease without removing
its map entry. Call unregister to retire that entry explicitly.
Implementations§
Source§impl SQLFunctionRegistration
impl SQLFunctionRegistration
Sourcepub fn unregister(&mut self) -> Result<(), SQLFunctionRegistrationError>
pub fn unregister(&mut self) -> Result<(), SQLFunctionRegistrationError>
Prevent future calls and release this registration. Busy preserves the handle and its map entry. An older handle never removes a replacement. Success releases the shared registry lease as well as the function. Repeated successful retirement is a no-op.
Auto Trait Implementations§
impl !RefUnwindSafe for SQLFunctionRegistration
impl !UnwindSafe for SQLFunctionRegistration
impl Freeze for SQLFunctionRegistration
impl Send for SQLFunctionRegistration
impl Sync for SQLFunctionRegistration
impl Unpin for SQLFunctionRegistration
impl UnsafeUnpin for SQLFunctionRegistration
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
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more