pub struct RegisteredQueryGuard { /* private fields */ }Implementations§
Source§impl RegisteredQueryGuard
impl RegisteredQueryGuard
pub fn new(query: RegisteredSqlQuery) -> Self
pub fn query(&self) -> &RegisteredSqlQuery
pub fn complete(self) -> Result<()>
pub fn try_complete(self) -> Result<()>
pub fn fail(self)
pub fn fail_result_limit(self)
pub fn fail_with_error( self, code: impl Into<String>, category: QueryTerminalErrorCategory, )
pub fn fail_serialization(self)
pub fn into_query(self) -> RegisteredSqlQuery
Trait Implementations§
Source§impl Drop for RegisteredQueryGuard
impl Drop for RegisteredQueryGuard
Auto Trait Implementations§
impl !RefUnwindSafe for RegisteredQueryGuard
impl !UnwindSafe for RegisteredQueryGuard
impl Freeze for RegisteredQueryGuard
impl Send for RegisteredQueryGuard
impl Sync for RegisteredQueryGuard
impl Unpin for RegisteredQueryGuard
impl UnsafeUnpin for RegisteredQueryGuard
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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