pub enum EntityMigrationError {
SameSourceAndTarget(StationId),
MissingSource(StationId),
MissingTarget(StationId),
Station(StationError),
}Expand description
Entity migration error.
Variants§
SameSourceAndTarget(StationId)
Source and target station ids must differ.
MissingSource(StationId)
Source station was not found.
MissingTarget(StationId)
Target station was not found.
Station(StationError)
Station-level operation failed.
Trait Implementations§
Source§impl Clone for EntityMigrationError
impl Clone for EntityMigrationError
Source§fn clone(&self) -> EntityMigrationError
fn clone(&self) -> EntityMigrationError
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 EntityMigrationError
Source§impl Debug for EntityMigrationError
impl Debug for EntityMigrationError
Source§impl Display for EntityMigrationError
impl Display for EntityMigrationError
impl Eq for EntityMigrationError
Source§impl Error for EntityMigrationError
impl Error for EntityMigrationError
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<EntityMigrationError> for CellMigrationError
impl From<EntityMigrationError> for CellMigrationError
Source§fn from(value: EntityMigrationError) -> Self
fn from(value: EntityMigrationError) -> Self
Converts to this type from the input type.
Source§impl From<StationError> for EntityMigrationError
impl From<StationError> for EntityMigrationError
Source§fn from(value: StationError) -> Self
fn from(value: StationError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for EntityMigrationError
impl PartialEq for EntityMigrationError
impl StructuralPartialEq for EntityMigrationError
Auto Trait Implementations§
impl Freeze for EntityMigrationError
impl RefUnwindSafe for EntityMigrationError
impl Send for EntityMigrationError
impl Sync for EntityMigrationError
impl Unpin for EntityMigrationError
impl UnsafeUnpin for EntityMigrationError
impl UnwindSafe for EntityMigrationError
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