pub struct ParallelCopyDestinationNotAvailable { /* private fields */ }Expand description
A CopyDestination that panics when used. Cannot be constructed outside this module, but is available for type reference to indicate Parallel copy is not supported.
Trait Implementations§
Source§impl Clone for ParallelCopyDestinationNotAvailable
impl Clone for ParallelCopyDestinationNotAvailable
Source§fn clone(&self) -> ParallelCopyDestinationNotAvailable
fn clone(&self) -> ParallelCopyDestinationNotAvailable
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ParallelCopyDestinationNotAvailable
Source§impl CopyDestination for ParallelCopyDestinationNotAvailable
impl CopyDestination for ParallelCopyDestinationNotAvailable
Source§type Transaction<'a> = ParallelCopyTransactionNotAvailable
type Transaction<'a> = ParallelCopyTransactionNotAvailable
The transaction type returned by
begin_transaction.Source§async fn apply_data<R: TableDataReader, C: AsyncCleanup>(
&mut self,
_schema: &PostgresSchema,
_table: &PostgresTable,
_data: TableData<R, C>,
) -> Result<()>
async fn apply_data<R: TableDataReader, C: AsyncCleanup>( &mut self, _schema: &PostgresSchema, _table: &PostgresTable, _data: TableData<R, C>, ) -> Result<()>
This should apply the data to the destination. The data is expected to be in the
format returned by
supported_data_format, if possible.Source§async fn apply_non_transactional_statement(
&mut self,
_statement: &str,
) -> Result<()>
async fn apply_non_transactional_statement( &mut self, _statement: &str, ) -> Result<()>
This should apply the DDL statements to the destination.
These commands has to be run outside a transaction, as they might fail otherwise.
Source§async fn begin_transaction(
&mut self,
) -> Result<ParallelCopyTransactionNotAvailable>
async fn begin_transaction( &mut self, ) -> Result<ParallelCopyTransactionNotAvailable>
Should begin a new transaction and return a handle to it.
Source§fn get_identifier_quoter(&self) -> Arc<IdentifierQuoter> ⓘ
fn get_identifier_quoter(&self) -> Arc<IdentifierQuoter> ⓘ
Should get the identifier quoter that works with this destination. This ensures
quoting respects the rules of the destination, not the source.
fn finish(&mut self) -> impl Future<Output = Result<()>>
Source§fn try_introspect(
&self,
) -> impl Future<Output = Result<Option<PostgresDatabase>>>
fn try_introspect( &self, ) -> impl Future<Output = Result<Option<PostgresDatabase>>>
Should try to introspect the destination. If introspection is not supported, this should return
Ok(None),
not an error. Errors should only be returned if introspection is supported, but failed.fn has_data_in_table( &self, _schema: &PostgresSchema, _table: &PostgresTable, ) -> impl Future<Output = Result<bool>>
Auto Trait Implementations§
impl Freeze for ParallelCopyDestinationNotAvailable
impl RefUnwindSafe for ParallelCopyDestinationNotAvailable
impl Send for ParallelCopyDestinationNotAvailable
impl Sync for ParallelCopyDestinationNotAvailable
impl Unpin for ParallelCopyDestinationNotAvailable
impl UnsafeUnpin for ParallelCopyDestinationNotAvailable
impl UnwindSafe for ParallelCopyDestinationNotAvailable
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more