BindBuilder

Struct BindBuilder 

Source
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: PORTAL

The name of the destination portal.

§statement: STATEMENT

The name of the source prepared statement.

§format_codes: FORMAT_CODES

The parameter format codes.

§values: VALUES

Array of parameter values and their lengths.

§result_format_codes: RESULT_FORMAT_CODES

The 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>>,

Source§

type Message = Bind<'static>

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,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
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,

Source§

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>>,

Source§

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>>,

Source§

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>
where PORTAL: Freeze, STATEMENT: Freeze, FORMAT_CODES: Freeze, VALUES: Freeze, RESULT_FORMAT_CODES: Freeze,

§

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>
where PORTAL: Send, STATEMENT: Send, FORMAT_CODES: Send, VALUES: Send, RESULT_FORMAT_CODES: Send,

§

impl<PORTAL, STATEMENT, FORMAT_CODES, VALUES, RESULT_FORMAT_CODES> Sync for BindBuilder<PORTAL, STATEMENT, FORMAT_CODES, VALUES, RESULT_FORMAT_CODES>
where PORTAL: Sync, STATEMENT: Sync, FORMAT_CODES: Sync, VALUES: Sync, RESULT_FORMAT_CODES: Sync,

§

impl<PORTAL, STATEMENT, FORMAT_CODES, VALUES, RESULT_FORMAT_CODES> Unpin for BindBuilder<PORTAL, STATEMENT, FORMAT_CODES, VALUES, RESULT_FORMAT_CODES>
where PORTAL: Unpin, STATEMENT: Unpin, FORMAT_CODES: Unpin, VALUES: Unpin, RESULT_FORMAT_CODES: Unpin,

§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> EncoderForExt for T
where T: ?Sized,

Source§

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>,

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>,

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 measure<F>(&self) -> usize
where F: 'static, Self: EncoderFor<F>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.