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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl CopyDestination for ParallelCopyDestinationNotAvailable
impl CopyDestination for ParallelCopyDestinationNotAvailable
Source§async fn apply_data<S: Stream<Item = Result<Bytes>> + Send, C: AsyncCleanup>(
&mut self,
_schema: &PostgresSchema,
_table: &PostgresTable,
_data: TableData<S, C>,
) -> Result<()>
async fn apply_data<S: Stream<Item = Result<Bytes>> + Send, C: AsyncCleanup>( &mut self, _schema: &PostgresSchema, _table: &PostgresTable, _data: TableData<S, 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_transactional_statement(
&mut self,
_statement: &str,
) -> Result<()>
async fn apply_transactional_statement( &mut self, _statement: &str, ) -> Result<()>
This should apply the DDL statements to the destination.
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<()>
async fn begin_transaction(&mut self) -> Result<()>
Should begin a new transaction.
Source§async fn commit_transaction(&mut self) -> Result<()>
async fn commit_transaction(&mut self) -> Result<()>
Should commit a running transaction.
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<()>> + Send
Source§fn try_introspect(
&self,
) -> impl Future<Output = Result<Option<PostgresDatabase>>> + Send
fn try_introspect( &self, ) -> impl Future<Output = Result<Option<PostgresDatabase>>> + Send
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>> + Send
impl Copy for ParallelCopyDestinationNotAvailable
Auto Trait Implementations§
impl Freeze for ParallelCopyDestinationNotAvailable
impl RefUnwindSafe for ParallelCopyDestinationNotAvailable
impl Send for ParallelCopyDestinationNotAvailable
impl Sync for ParallelCopyDestinationNotAvailable
impl Unpin 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
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