pub enum DdlMigrationError {
Replica(ReplicaError),
Bookkeeping(BookkeepingError),
}Expand description
A standalone authority’s checked DDL apply can fail either in the cluster/schema machinery or in the shared write-plane policy checks. Keeping the latter typed preserves stable migration error codes all the way to the host’s HTTP renderer.
Variants§
Replica(ReplicaError)
Bookkeeping(BookkeepingError)
Trait Implementations§
Source§impl Debug for DdlMigrationError
impl Debug for DdlMigrationError
Source§impl Display for DdlMigrationError
impl Display for DdlMigrationError
Source§impl Error for DdlMigrationError
impl Error for DdlMigrationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<BookkeepingError> for DdlMigrationError
impl From<BookkeepingError> for DdlMigrationError
Source§fn from(error: BookkeepingError) -> DdlMigrationError
fn from(error: BookkeepingError) -> DdlMigrationError
Converts to this type from the input type.
Source§impl From<DdlMigrationError> for WritePlaneError
A DDL/migration failure raised here has to surface through writeplane’s public SQL
error body. The impl lives beside DdlMigrationError because it is the local type —
impl From<Local> for Foreign is what the orphan rule permits.
impl From<DdlMigrationError> for WritePlaneError
A DDL/migration failure raised here has to surface through writeplane’s public SQL
error body. The impl lives beside DdlMigrationError because it is the local type —
impl From<Local> for Foreign is what the orphan rule permits.
Source§fn from(error: DdlMigrationError) -> WritePlaneError
fn from(error: DdlMigrationError) -> WritePlaneError
Converts to this type from the input type.
Source§impl From<ReplicaError> for DdlMigrationError
impl From<ReplicaError> for DdlMigrationError
Source§fn from(error: ReplicaError) -> DdlMigrationError
fn from(error: ReplicaError) -> DdlMigrationError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DdlMigrationError
impl !RefUnwindSafe for DdlMigrationError
impl Send for DdlMigrationError
impl Sync for DdlMigrationError
impl Unpin for DdlMigrationError
impl UnsafeUnpin for DdlMigrationError
impl !UnwindSafe for DdlMigrationError
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