pub enum StationError {
DuplicateEntity(EntityId),
MissingEntity(EntityId),
MissingEntityHandle(EntityHandle),
NotOwner(EntityId),
AlreadyOwner(EntityId),
HandoffTargetIsSource(StationId),
WrongHandoffTarget {
expected: StationId,
actual: StationId,
},
WrongHandoffSource {
expected: StationId,
actual: StationId,
},
SnapshotStationMismatch {
expected: StationId,
actual: StationId,
},
}Expand description
Station operation error.
Variants§
DuplicateEntity(EntityId)
Entity id already exists in this station.
MissingEntity(EntityId)
Entity id does not exist in this station.
MissingEntityHandle(EntityHandle)
Entity handle is missing or stale.
NotOwner(EntityId)
Operation requires an authoritative entity.
AlreadyOwner(EntityId)
This station is already authoritative for the entity.
HandoffTargetIsSource(StationId)
Handoff target cannot be the source station.
WrongHandoffTarget
Incoming transfer was addressed to a different target station.
Fields
WrongHandoffSource
Outgoing transfer was addressed from a different source station.
Fields
SnapshotStationMismatch
Snapshot was captured from a different station.
Trait Implementations§
Source§impl Clone for StationError
impl Clone for StationError
Source§fn clone(&self) -> StationError
fn clone(&self) -> StationError
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 StationError
Source§impl Debug for StationError
impl Debug for StationError
Source§impl Display for StationError
impl Display for StationError
impl Eq for StationError
Source§impl Error for StationError
impl Error for StationError
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 PartialEq for StationError
impl PartialEq for StationError
impl StructuralPartialEq for StationError
Auto Trait Implementations§
impl Freeze for StationError
impl RefUnwindSafe for StationError
impl Send for StationError
impl Sync for StationError
impl Unpin for StationError
impl UnsafeUnpin for StationError
impl UnwindSafe for StationError
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