pub struct Execute<'a, 'b, T: ?Sized> {
pub sql: &'a str,
pub bind_params: &'b T,
pub limit: Option<usize>,
}
Fields§
§sql: &'a str
§bind_params: &'b T
§limit: Option<usize>
Trait Implementations§
source§impl<'a, 'b, T> Request for Execute<'a, 'b, T>where
T: ToTupleBuffer + ?Sized,
impl<'a, 'b, T> Request for Execute<'a, 'b, T>where
T: ToTupleBuffer + ?Sized,
const TYPE: IProtoType = IProtoType::Execute
type Response = Vec<Tuple>
fn encode_body(&self, out: &mut impl Write) -> Result<(), Error>
fn decode_body(&self, in: &mut Cursor<Vec<u8>>) -> Result<Self::Response, Error>
fn encode_header( &self, out: &mut impl Write, sync: SyncIndex ) -> Result<(), Error>
fn encode(&self, out: &mut impl Write, sync: SyncIndex) -> Result<(), Error>
Auto Trait Implementations§
impl<'a, 'b, T: ?Sized> RefUnwindSafe for Execute<'a, 'b, T>where
T: RefUnwindSafe,
impl<'a, 'b, T: ?Sized> Send for Execute<'a, 'b, T>where
T: Sync,
impl<'a, 'b, T: ?Sized> Sync for Execute<'a, 'b, T>where
T: Sync,
impl<'a, 'b, T: ?Sized> Unpin for Execute<'a, 'b, T>
impl<'a, 'b, T: ?Sized> UnwindSafe for Execute<'a, 'b, T>where
T: RefUnwindSafe,
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