[][src]Struct roa_pg::CopyInSink

pub struct CopyInSink<T> { /* fields omitted */ }

A sink for COPY ... FROM STDIN query data.

The copy must be explicitly completed via the Sink::close or finish methods. If it is not, the copy will be aborted.

Methods

impl<T> CopyInSink<T> where
    T: Buf + 'static + Send
[src]

pub fn poll_finish(
    self: Pin<&mut CopyInSink<T>>,
    cx: &mut Context
) -> Poll<Result<u64, Error>>
[src]

A poll-based version of finish.

pub async fn finish(__arg0: Pin<&'_ mut CopyInSink<T>>) -> Result<u64, Error>[src]

Completes the copy, returning the number of rows inserted.

The Sink::close method is equivalent to finish, except that it does not return the number of rows.

Trait Implementations

impl<T> Sink<T> for CopyInSink<T> where
    T: Buf + 'static + Send
[src]

type Error = Error

The type of value produced by the sink when an error occurs.

impl<'__pin, T> Unpin for CopyInSink<T> where
    __Origin<'__pin, T>: Unpin
[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for CopyInSink<T>

impl<T> Send for CopyInSink<T> where
    T: Send

impl<T> Sync for CopyInSink<T> where
    T: Sync

impl<T> !UnwindSafe for CopyInSink<T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, Item> SinkExt<Item> for T where
    T: Sink<Item> + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,