Struct convergence::protocol_ext::DataRowBatch [−][src]
Supports batched rows for e.g. returning portal result sets.
NB: this struct only performs limited validation of column consistency across rows.
Implementations
impl DataRowBatch
[src]
pub fn new(format_code: FormatCode, num_cols: usize) -> Self
[src]
Creates a new row batch using the given format code, requiring a certain number of columns per row.
pub fn from_row_desc(desc: &RowDescription) -> Self
[src]
Creates a DataRowBatch from the given RowDescription.
pub fn create_row(&mut self) -> DataRowWriter<'_>
[src]
Starts writing a new row.
Returns a DataRowWriter that is responsible for the actual value encoding.
pub fn num_rows(&self) -> usize
[src]
Returns the number of rows currently written to this batch.
Trait Implementations
impl Encoder<DataRowBatch> for ConnectionCodec
[src]
type Error = ProtocolError
The type of encoding errors. Read more
fn encode(
&mut self,
item: DataRowBatch,
dst: &mut BytesMut
) -> Result<(), Self::Error>
[src]
&mut self,
item: DataRowBatch,
dst: &mut BytesMut
) -> Result<(), Self::Error>
Auto Trait Implementations
impl RefUnwindSafe for DataRowBatch
impl Send for DataRowBatch
impl Sync for DataRowBatch
impl Unpin for DataRowBatch
impl UnwindSafe for DataRowBatch
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,