pub struct BindBuilder<PORTAL = ZTString<'static>, STATEMENT = ZTString<'static>, FORMAT_CODES = Array<'static, i16, i16>, VALUES = Array<'static, i16, Encoded<'static>>, RESULT_FORMAT_CODES = Array<'static, i16, i16>>where
PORTAL: EncoderFor<ZTString<'static>>,
STATEMENT: EncoderFor<ZTString<'static>>,
FORMAT_CODES: EncoderFor<Array<'static, i16, i16>>,
VALUES: EncoderFor<Array<'static, i16, Encoded<'static>>>,
RESULT_FORMAT_CODES: EncoderFor<Array<'static, i16, i16>>,{
pub portal: PORTAL,
pub statement: STATEMENT,
pub format_codes: FORMAT_CODES,
pub values: VALUES,
pub result_format_codes: RESULT_FORMAT_CODES,
}Fields§
§portal: PORTALThe name of the destination portal.
statement: STATEMENTThe name of the source prepared statement.
format_codes: FORMAT_CODESThe parameter format codes.
values: VALUESArray of parameter values and their lengths.
result_format_codes: RESULT_FORMAT_CODESThe result-column format codes.
Trait Implementations§
Source§impl<PORTAL, STATEMENT, FORMAT_CODES, VALUES, RESULT_FORMAT_CODES> BuilderFor for BindBuilder<PORTAL, STATEMENT, FORMAT_CODES, VALUES, RESULT_FORMAT_CODES>where
PORTAL: EncoderFor<ZTString<'static>>,
STATEMENT: EncoderFor<ZTString<'static>>,
FORMAT_CODES: EncoderFor<Array<'static, i16, i16>>,
VALUES: EncoderFor<Array<'static, i16, Encoded<'static>>>,
RESULT_FORMAT_CODES: EncoderFor<Array<'static, i16, i16>>,
impl<PORTAL, STATEMENT, FORMAT_CODES, VALUES, RESULT_FORMAT_CODES> BuilderFor for BindBuilder<PORTAL, STATEMENT, FORMAT_CODES, VALUES, RESULT_FORMAT_CODES>where
PORTAL: EncoderFor<ZTString<'static>>,
STATEMENT: EncoderFor<ZTString<'static>>,
FORMAT_CODES: EncoderFor<Array<'static, i16, i16>>,
VALUES: EncoderFor<Array<'static, i16, Encoded<'static>>>,
RESULT_FORMAT_CODES: EncoderFor<Array<'static, i16, i16>>,
Source§impl<PORTAL, STATEMENT, FORMAT_CODES, VALUES, RESULT_FORMAT_CODES> Debug for BindBuilder<PORTAL, STATEMENT, FORMAT_CODES, VALUES, RESULT_FORMAT_CODES>where
PORTAL: EncoderFor<ZTString<'static>> + Debug,
STATEMENT: EncoderFor<ZTString<'static>> + Debug,
FORMAT_CODES: EncoderFor<Array<'static, i16, i16>> + Debug,
VALUES: EncoderFor<Array<'static, i16, Encoded<'static>>> + Debug,
RESULT_FORMAT_CODES: EncoderFor<Array<'static, i16, i16>> + Debug,
impl<PORTAL, STATEMENT, FORMAT_CODES, VALUES, RESULT_FORMAT_CODES> Debug for BindBuilder<PORTAL, STATEMENT, FORMAT_CODES, VALUES, RESULT_FORMAT_CODES>where
PORTAL: EncoderFor<ZTString<'static>> + Debug,
STATEMENT: EncoderFor<ZTString<'static>> + Debug,
FORMAT_CODES: EncoderFor<Array<'static, i16, i16>> + Debug,
VALUES: EncoderFor<Array<'static, i16, Encoded<'static>>> + Debug,
RESULT_FORMAT_CODES: EncoderFor<Array<'static, i16, i16>> + Debug,
Source§impl<PORTAL, STATEMENT, FORMAT_CODES, VALUES, RESULT_FORMAT_CODES> Default for BindBuilder<PORTAL, STATEMENT, FORMAT_CODES, VALUES, RESULT_FORMAT_CODES>where
PORTAL: EncoderFor<ZTString<'static>> + Default,
STATEMENT: EncoderFor<ZTString<'static>> + Default,
FORMAT_CODES: EncoderFor<Array<'static, i16, i16>> + Default,
VALUES: EncoderFor<Array<'static, i16, Encoded<'static>>> + Default,
RESULT_FORMAT_CODES: EncoderFor<Array<'static, i16, i16>> + Default,
impl<PORTAL, STATEMENT, FORMAT_CODES, VALUES, RESULT_FORMAT_CODES> Default for BindBuilder<PORTAL, STATEMENT, FORMAT_CODES, VALUES, RESULT_FORMAT_CODES>where
PORTAL: EncoderFor<ZTString<'static>> + Default,
STATEMENT: EncoderFor<ZTString<'static>> + Default,
FORMAT_CODES: EncoderFor<Array<'static, i16, i16>> + Default,
VALUES: EncoderFor<Array<'static, i16, Encoded<'static>>> + Default,
RESULT_FORMAT_CODES: EncoderFor<Array<'static, i16, i16>> + Default,
Source§fn default() -> BindBuilder<PORTAL, STATEMENT, FORMAT_CODES, VALUES, RESULT_FORMAT_CODES>
fn default() -> BindBuilder<PORTAL, STATEMENT, FORMAT_CODES, VALUES, RESULT_FORMAT_CODES>
Returns the “default value” for a type. Read more
Source§impl<PORTAL, STATEMENT, FORMAT_CODES, VALUES, RESULT_FORMAT_CODES> EncoderFor<Bind<'static>> for &BindBuilder<PORTAL, STATEMENT, FORMAT_CODES, VALUES, RESULT_FORMAT_CODES>where
PORTAL: EncoderFor<ZTString<'static>>,
STATEMENT: EncoderFor<ZTString<'static>>,
FORMAT_CODES: EncoderFor<Array<'static, i16, i16>>,
VALUES: EncoderFor<Array<'static, i16, Encoded<'static>>>,
RESULT_FORMAT_CODES: EncoderFor<Array<'static, i16, i16>>,
impl<PORTAL, STATEMENT, FORMAT_CODES, VALUES, RESULT_FORMAT_CODES> EncoderFor<Bind<'static>> for &BindBuilder<PORTAL, STATEMENT, FORMAT_CODES, VALUES, RESULT_FORMAT_CODES>where
PORTAL: EncoderFor<ZTString<'static>>,
STATEMENT: EncoderFor<ZTString<'static>>,
FORMAT_CODES: EncoderFor<Array<'static, i16, i16>>,
VALUES: EncoderFor<Array<'static, i16, Encoded<'static>>>,
RESULT_FORMAT_CODES: EncoderFor<Array<'static, i16, i16>>,
fn encode_for(&self, buf: &mut BufWriter<'_>)
Source§impl<PORTAL, STATEMENT, FORMAT_CODES, VALUES, RESULT_FORMAT_CODES> EncoderFor<Bind<'static>> for BindBuilder<PORTAL, STATEMENT, FORMAT_CODES, VALUES, RESULT_FORMAT_CODES>where
PORTAL: EncoderFor<ZTString<'static>>,
STATEMENT: EncoderFor<ZTString<'static>>,
FORMAT_CODES: EncoderFor<Array<'static, i16, i16>>,
VALUES: EncoderFor<Array<'static, i16, Encoded<'static>>>,
RESULT_FORMAT_CODES: EncoderFor<Array<'static, i16, i16>>,
impl<PORTAL, STATEMENT, FORMAT_CODES, VALUES, RESULT_FORMAT_CODES> EncoderFor<Bind<'static>> for BindBuilder<PORTAL, STATEMENT, FORMAT_CODES, VALUES, RESULT_FORMAT_CODES>where
PORTAL: EncoderFor<ZTString<'static>>,
STATEMENT: EncoderFor<ZTString<'static>>,
FORMAT_CODES: EncoderFor<Array<'static, i16, i16>>,
VALUES: EncoderFor<Array<'static, i16, Encoded<'static>>>,
RESULT_FORMAT_CODES: EncoderFor<Array<'static, i16, i16>>,
fn encode_for(&self, buf: &mut BufWriter<'_>)
Auto Trait Implementations§
impl<PORTAL, STATEMENT, FORMAT_CODES, VALUES, RESULT_FORMAT_CODES> Freeze for BindBuilder<PORTAL, STATEMENT, FORMAT_CODES, VALUES, RESULT_FORMAT_CODES>
impl<PORTAL, STATEMENT, FORMAT_CODES, VALUES, RESULT_FORMAT_CODES> RefUnwindSafe for BindBuilder<PORTAL, STATEMENT, FORMAT_CODES, VALUES, RESULT_FORMAT_CODES>where
PORTAL: RefUnwindSafe,
STATEMENT: RefUnwindSafe,
FORMAT_CODES: RefUnwindSafe,
VALUES: RefUnwindSafe,
RESULT_FORMAT_CODES: RefUnwindSafe,
impl<PORTAL, STATEMENT, FORMAT_CODES, VALUES, RESULT_FORMAT_CODES> Send for BindBuilder<PORTAL, STATEMENT, FORMAT_CODES, VALUES, RESULT_FORMAT_CODES>
impl<PORTAL, STATEMENT, FORMAT_CODES, VALUES, RESULT_FORMAT_CODES> Sync for BindBuilder<PORTAL, STATEMENT, FORMAT_CODES, VALUES, RESULT_FORMAT_CODES>
impl<PORTAL, STATEMENT, FORMAT_CODES, VALUES, RESULT_FORMAT_CODES> Unpin for BindBuilder<PORTAL, STATEMENT, FORMAT_CODES, VALUES, RESULT_FORMAT_CODES>
impl<PORTAL, STATEMENT, FORMAT_CODES, VALUES, RESULT_FORMAT_CODES> UnwindSafe for BindBuilder<PORTAL, STATEMENT, FORMAT_CODES, VALUES, RESULT_FORMAT_CODES>where
PORTAL: UnwindSafe,
STATEMENT: UnwindSafe,
FORMAT_CODES: UnwindSafe,
VALUES: UnwindSafe,
RESULT_FORMAT_CODES: 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> EncoderForExt for Twhere
T: ?Sized,
impl<T> EncoderForExt for Twhere
T: ?Sized,
Source§fn to_vec<F>(&self) -> Vec<u8> ⓘwhere
F: 'static,
Self: EncoderFor<F>,
fn to_vec<F>(&self) -> Vec<u8> ⓘwhere
F: 'static,
Self: EncoderFor<F>,
Convert this builder into a vector of bytes. This is generally
not the most efficient way to perform serialization.
Source§fn encode_buffer<F>(&self, buf: &mut [u8]) -> Result<usize, usize>where
F: 'static,
Self: EncoderFor<F>,
fn encode_buffer<F>(&self, buf: &mut [u8]) -> Result<usize, usize>where
F: 'static,
Self: EncoderFor<F>,
Encode this builder into a given buffer. If the buffer is
too small, the function will return the number of bytes
required to encode the builder.
Source§fn encode_buffer_uninit<'a, F>(
&self,
buf: &'a mut [MaybeUninit<u8>],
) -> Result<&'a mut [u8], usize>where
F: 'static,
Self: EncoderFor<F>,
fn encode_buffer_uninit<'a, F>(
&self,
buf: &'a mut [MaybeUninit<u8>],
) -> Result<&'a mut [u8], usize>where
F: 'static,
Self: EncoderFor<F>,
Encode this builder into a given buffer. If the buffer is
too small, the function will return the number of bytes
required to encode the builder.