#[repr(i8)]pub enum ErrorCode {
Show 14 variants
    NotOwner = -1,
    NoPath = -2,
    NameExists = -3,
    Busy = -4,
    NotFound = -5,
    NotEnough = -6,
    InvalidTarget = -7,
    Full = -8,
    NotInRange = -9,
    InvalidArgs = -10,
    Tired = -11,
    NoBodypart = -12,
    RclNotEnough = -14,
    GclNotEnough = -15,
}Expand description
Translates non-OK return codes.
Variants§
NotOwner = -1
NoPath = -2
NameExists = -3
Busy = -4
NotFound = -5
NotEnough = -6
InvalidTarget = -7
Full = -8
NotInRange = -9
InvalidArgs = -10
Tired = -11
NoBodypart = -12
RclNotEnough = -14
GclNotEnough = -15
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ErrorCode
 
impl<'de> Deserialize<'de> for ErrorCode
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
    D: Deserializer<'de>,
 
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
    D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<ActivateSafeModeErrorCode> for ErrorCode
 
impl From<ActivateSafeModeErrorCode> for ErrorCode
Source§fn from(value: ActivateSafeModeErrorCode) -> Self
 
fn from(value: ActivateSafeModeErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<AttackControllerErrorCode> for ErrorCode
 
impl From<AttackControllerErrorCode> for ErrorCode
Source§fn from(value: AttackControllerErrorCode) -> Self
 
fn from(value: AttackControllerErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<BoostCreepErrorCode> for ErrorCode
 
impl From<BoostCreepErrorCode> for ErrorCode
Source§fn from(value: BoostCreepErrorCode) -> Self
 
fn from(value: BoostCreepErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<BuildErrorCode> for ErrorCode
 
impl From<BuildErrorCode> for ErrorCode
Source§fn from(value: BuildErrorCode) -> Self
 
fn from(value: BuildErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<CancelErrorCode> for ErrorCode
 
impl From<CancelErrorCode> for ErrorCode
Source§fn from(value: CancelErrorCode) -> Self
 
fn from(value: CancelErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<ChangeOrderPriceErrorCode> for ErrorCode
 
impl From<ChangeOrderPriceErrorCode> for ErrorCode
Source§fn from(value: ChangeOrderPriceErrorCode) -> Self
 
fn from(value: ChangeOrderPriceErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<ClaimControllerErrorCode> for ErrorCode
 
impl From<ClaimControllerErrorCode> for ErrorCode
Source§fn from(value: ClaimControllerErrorCode) -> Self
 
fn from(value: ClaimControllerErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<ConstructionSiteRemoveErrorCode> for ErrorCode
 
impl From<ConstructionSiteRemoveErrorCode> for ErrorCode
Source§fn from(value: ConstructionSiteRemoveErrorCode) -> Self
 
fn from(value: ConstructionSiteRemoveErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<CreateOrderErrorCode> for ErrorCode
 
impl From<CreateOrderErrorCode> for ErrorCode
Source§fn from(value: CreateOrderErrorCode) -> Self
 
fn from(value: CreateOrderErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<CreepAttackErrorCode> for ErrorCode
 
impl From<CreepAttackErrorCode> for ErrorCode
Source§fn from(value: CreepAttackErrorCode) -> Self
 
fn from(value: CreepAttackErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<CreepCancelOrderErrorCode> for ErrorCode
 
impl From<CreepCancelOrderErrorCode> for ErrorCode
Source§fn from(value: CreepCancelOrderErrorCode) -> Self
 
fn from(value: CreepCancelOrderErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<CreepClaimReactorErrorCode> for ErrorCode
Available on crate feature seasonal-season-5 only. 
impl From<CreepClaimReactorErrorCode> for ErrorCode
Available on crate feature 
seasonal-season-5 only.Source§fn from(value: CreepClaimReactorErrorCode) -> Self
 
fn from(value: CreepClaimReactorErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<CreepHealErrorCode> for ErrorCode
 
impl From<CreepHealErrorCode> for ErrorCode
Source§fn from(value: CreepHealErrorCode) -> Self
 
fn from(value: CreepHealErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<CreepMoveByPathErrorCode> for ErrorCode
 
impl From<CreepMoveByPathErrorCode> for ErrorCode
Source§fn from(value: CreepMoveByPathErrorCode) -> Self
 
fn from(value: CreepMoveByPathErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<CreepMoveDirectionErrorCode> for ErrorCode
 
impl From<CreepMoveDirectionErrorCode> for ErrorCode
Source§fn from(value: CreepMoveDirectionErrorCode) -> Self
 
fn from(value: CreepMoveDirectionErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<CreepMovePulledByErrorCode> for ErrorCode
 
impl From<CreepMovePulledByErrorCode> for ErrorCode
Source§fn from(value: CreepMovePulledByErrorCode) -> Self
 
fn from(value: CreepMovePulledByErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<CreepMoveToErrorCode> for ErrorCode
 
impl From<CreepMoveToErrorCode> for ErrorCode
Source§fn from(value: CreepMoveToErrorCode) -> Self
 
fn from(value: CreepMoveToErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<CreepRepairErrorCode> for ErrorCode
 
impl From<CreepRepairErrorCode> for ErrorCode
Source§fn from(value: CreepRepairErrorCode) -> Self
 
fn from(value: CreepRepairErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<DealErrorCode> for ErrorCode
 
impl From<DealErrorCode> for ErrorCode
Source§fn from(value: DealErrorCode) -> Self
 
fn from(value: DealErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<DeleteErrorCode> for ErrorCode
 
impl From<DeleteErrorCode> for ErrorCode
Source§fn from(value: DeleteErrorCode) -> Self
 
fn from(value: DeleteErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<DestroyErrorCode> for ErrorCode
 
impl From<DestroyErrorCode> for ErrorCode
Source§fn from(value: DestroyErrorCode) -> Self
 
fn from(value: DestroyErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<DismantleErrorCode> for ErrorCode
 
impl From<DismantleErrorCode> for ErrorCode
Source§fn from(value: DismantleErrorCode) -> Self
 
fn from(value: DismantleErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<DropErrorCode> for ErrorCode
 
impl From<DropErrorCode> for ErrorCode
Source§fn from(value: DropErrorCode) -> Self
 
fn from(value: DropErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<EnableRoomErrorCode> for ErrorCode
 
impl From<EnableRoomErrorCode> for ErrorCode
Source§fn from(value: EnableRoomErrorCode) -> Self
 
fn from(value: EnableRoomErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<ExtendOrderErrorCode> for ErrorCode
 
impl From<ExtendOrderErrorCode> for ErrorCode
Source§fn from(value: ExtendOrderErrorCode) -> Self
 
fn from(value: ExtendOrderErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<FindExitErrorCode> for ErrorCode
 
impl From<FindExitErrorCode> for ErrorCode
Source§fn from(value: FindExitErrorCode) -> Self
 
fn from(value: FindExitErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<FindExitToErrorCode> for ErrorCode
 
impl From<FindExitToErrorCode> for ErrorCode
Source§fn from(value: FindExitToErrorCode) -> Self
 
fn from(value: FindExitToErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<FindRouteErrorCode> for ErrorCode
 
impl From<FindRouteErrorCode> for ErrorCode
Source§fn from(value: FindRouteErrorCode) -> Self
 
fn from(value: FindRouteErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<GeneratePixelErrorCode> for ErrorCode
Available on crate feature mmo only. 
impl From<GeneratePixelErrorCode> for ErrorCode
Available on crate feature 
mmo only.Source§fn from(value: GeneratePixelErrorCode) -> Self
 
fn from(value: GeneratePixelErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<GenerateSafeModeErrorCode> for ErrorCode
 
impl From<GenerateSafeModeErrorCode> for ErrorCode
Source§fn from(value: GenerateSafeModeErrorCode) -> Self
 
fn from(value: GenerateSafeModeErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<HarvestErrorCode> for ErrorCode
 
impl From<HarvestErrorCode> for ErrorCode
Source§fn from(value: HarvestErrorCode) -> Self
 
fn from(value: HarvestErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<LaunchNukeErrorCode> for ErrorCode
 
impl From<LaunchNukeErrorCode> for ErrorCode
Source§fn from(value: LaunchNukeErrorCode) -> Self
 
fn from(value: LaunchNukeErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<MarketCancelOrderErrorCode> for ErrorCode
 
impl From<MarketCancelOrderErrorCode> for ErrorCode
Source§fn from(value: MarketCancelOrderErrorCode) -> Self
 
fn from(value: MarketCancelOrderErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<NotifyWhenAttackedErrorCode> for ErrorCode
 
impl From<NotifyWhenAttackedErrorCode> for ErrorCode
Source§fn from(value: NotifyWhenAttackedErrorCode) -> Self
 
fn from(value: NotifyWhenAttackedErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<ObserveRoomErrorCode> for ErrorCode
 
impl From<ObserveRoomErrorCode> for ErrorCode
Source§fn from(value: ObserveRoomErrorCode) -> Self
 
fn from(value: ObserveRoomErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<PickupErrorCode> for ErrorCode
 
impl From<PickupErrorCode> for ErrorCode
Source§fn from(value: PickupErrorCode) -> Self
 
fn from(value: PickupErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<PowerCreepCancelOrderErrorCode> for ErrorCode
 
impl From<PowerCreepCancelOrderErrorCode> for ErrorCode
Source§fn from(value: PowerCreepCancelOrderErrorCode) -> Self
 
fn from(value: PowerCreepCancelOrderErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<PowerCreepCreateErrorCode> for ErrorCode
 
impl From<PowerCreepCreateErrorCode> for ErrorCode
Source§fn from(value: PowerCreepCreateErrorCode) -> Self
 
fn from(value: PowerCreepCreateErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<PowerCreepMoveByPathErrorCode> for ErrorCode
 
impl From<PowerCreepMoveByPathErrorCode> for ErrorCode
Source§fn from(value: PowerCreepMoveByPathErrorCode) -> Self
 
fn from(value: PowerCreepMoveByPathErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<PowerCreepMoveDirectionErrorCode> for ErrorCode
 
impl From<PowerCreepMoveDirectionErrorCode> for ErrorCode
Source§fn from(value: PowerCreepMoveDirectionErrorCode) -> Self
 
fn from(value: PowerCreepMoveDirectionErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<PowerCreepMoveToErrorCode> for ErrorCode
 
impl From<PowerCreepMoveToErrorCode> for ErrorCode
Source§fn from(value: PowerCreepMoveToErrorCode) -> Self
 
fn from(value: PowerCreepMoveToErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<ProcessPowerErrorCode> for ErrorCode
 
impl From<ProcessPowerErrorCode> for ErrorCode
Source§fn from(value: ProcessPowerErrorCode) -> Self
 
fn from(value: ProcessPowerErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<ProduceErrorCode> for ErrorCode
 
impl From<ProduceErrorCode> for ErrorCode
Source§fn from(value: ProduceErrorCode) -> Self
 
fn from(value: ProduceErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<PullErrorCode> for ErrorCode
 
impl From<PullErrorCode> for ErrorCode
Source§fn from(value: PullErrorCode) -> Self
 
fn from(value: PullErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<RangedAttackErrorCode> for ErrorCode
 
impl From<RangedAttackErrorCode> for ErrorCode
Source§fn from(value: RangedAttackErrorCode) -> Self
 
fn from(value: RangedAttackErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<RangedHealErrorCode> for ErrorCode
 
impl From<RangedHealErrorCode> for ErrorCode
Source§fn from(value: RangedHealErrorCode) -> Self
 
fn from(value: RangedHealErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<RangedMassAttackErrorCode> for ErrorCode
 
impl From<RangedMassAttackErrorCode> for ErrorCode
Source§fn from(value: RangedMassAttackErrorCode) -> Self
 
fn from(value: RangedMassAttackErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<RecycleCreepErrorCode> for ErrorCode
 
impl From<RecycleCreepErrorCode> for ErrorCode
Source§fn from(value: RecycleCreepErrorCode) -> Self
 
fn from(value: RecycleCreepErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<RenameErrorCode> for ErrorCode
 
impl From<RenameErrorCode> for ErrorCode
Source§fn from(value: RenameErrorCode) -> Self
 
fn from(value: RenameErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<RenewCreepErrorCode> for ErrorCode
 
impl From<RenewCreepErrorCode> for ErrorCode
Source§fn from(value: RenewCreepErrorCode) -> Self
 
fn from(value: RenewCreepErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<RenewErrorCode> for ErrorCode
 
impl From<RenewErrorCode> for ErrorCode
Source§fn from(value: RenewErrorCode) -> Self
 
fn from(value: RenewErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<ReserveControllerErrorCode> for ErrorCode
 
impl From<ReserveControllerErrorCode> for ErrorCode
Source§fn from(value: ReserveControllerErrorCode) -> Self
 
fn from(value: ReserveControllerErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<ReverseReactionErrorCode> for ErrorCode
 
impl From<ReverseReactionErrorCode> for ErrorCode
Source§fn from(value: ReverseReactionErrorCode) -> Self
 
fn from(value: ReverseReactionErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<RoomCreateConstructionSiteErrorCode> for ErrorCode
 
impl From<RoomCreateConstructionSiteErrorCode> for ErrorCode
Source§fn from(value: RoomCreateConstructionSiteErrorCode) -> Self
 
fn from(value: RoomCreateConstructionSiteErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<RoomCreateFlagErrorCode> for ErrorCode
 
impl From<RoomCreateFlagErrorCode> for ErrorCode
Source§fn from(value: RoomCreateFlagErrorCode) -> Self
 
fn from(value: RoomCreateFlagErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<RoomPositionCreateConstructionSiteErrorCode> for ErrorCode
 
impl From<RoomPositionCreateConstructionSiteErrorCode> for ErrorCode
Source§fn from(value: RoomPositionCreateConstructionSiteErrorCode) -> Self
 
fn from(value: RoomPositionCreateConstructionSiteErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<RoomPositionCreateFlagErrorCode> for ErrorCode
 
impl From<RoomPositionCreateFlagErrorCode> for ErrorCode
Source§fn from(value: RoomPositionCreateFlagErrorCode) -> Self
 
fn from(value: RoomPositionCreateFlagErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<RunReactionErrorCode> for ErrorCode
 
impl From<RunReactionErrorCode> for ErrorCode
Source§fn from(value: RunReactionErrorCode) -> Self
 
fn from(value: RunReactionErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<SayErrorCode> for ErrorCode
 
impl From<SayErrorCode> for ErrorCode
Source§fn from(value: SayErrorCode) -> Self
 
fn from(value: SayErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<SendErrorCode> for ErrorCode
 
impl From<SendErrorCode> for ErrorCode
Source§fn from(value: SendErrorCode) -> Self
 
fn from(value: SendErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<SetColorErrorCode> for ErrorCode
 
impl From<SetColorErrorCode> for ErrorCode
Source§fn from(value: SetColorErrorCode) -> Self
 
fn from(value: SetColorErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<SetDirectionsErrorCode> for ErrorCode
 
impl From<SetDirectionsErrorCode> for ErrorCode
Source§fn from(value: SetDirectionsErrorCode) -> Self
 
fn from(value: SetDirectionsErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<SetPositionErrorCode> for ErrorCode
 
impl From<SetPositionErrorCode> for ErrorCode
Source§fn from(value: SetPositionErrorCode) -> Self
 
fn from(value: SetPositionErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<SetPublicErrorCode> for ErrorCode
 
impl From<SetPublicErrorCode> for ErrorCode
Source§fn from(value: SetPublicErrorCode) -> Self
 
fn from(value: SetPublicErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<SetShardLimitsErrorCode> for ErrorCode
Available on crate feature mmo only. 
impl From<SetShardLimitsErrorCode> for ErrorCode
Available on crate feature 
mmo only.Source§fn from(value: SetShardLimitsErrorCode) -> Self
 
fn from(value: SetShardLimitsErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<SignControllerErrorCode> for ErrorCode
 
impl From<SignControllerErrorCode> for ErrorCode
Source§fn from(value: SignControllerErrorCode) -> Self
 
fn from(value: SignControllerErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<SpawnCreepErrorCode> for ErrorCode
 
impl From<SpawnCreepErrorCode> for ErrorCode
Source§fn from(value: SpawnCreepErrorCode) -> Self
 
fn from(value: SpawnCreepErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<SpawnErrorCode> for ErrorCode
 
impl From<SpawnErrorCode> for ErrorCode
Source§fn from(value: SpawnErrorCode) -> Self
 
fn from(value: SpawnErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<StructureNotifyWhenAttackedErrorCode> for ErrorCode
 
impl From<StructureNotifyWhenAttackedErrorCode> for ErrorCode
Source§fn from(value: StructureNotifyWhenAttackedErrorCode) -> Self
 
fn from(value: StructureNotifyWhenAttackedErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<SuicideErrorCode> for ErrorCode
 
impl From<SuicideErrorCode> for ErrorCode
Source§fn from(value: SuicideErrorCode) -> Self
 
fn from(value: SuicideErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<TowerAttackErrorCode> for ErrorCode
 
impl From<TowerAttackErrorCode> for ErrorCode
Source§fn from(value: TowerAttackErrorCode) -> Self
 
fn from(value: TowerAttackErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<TowerHealErrorCode> for ErrorCode
 
impl From<TowerHealErrorCode> for ErrorCode
Source§fn from(value: TowerHealErrorCode) -> Self
 
fn from(value: TowerHealErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<TowerRepairErrorCode> for ErrorCode
 
impl From<TowerRepairErrorCode> for ErrorCode
Source§fn from(value: TowerRepairErrorCode) -> Self
 
fn from(value: TowerRepairErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<TransferEnergyErrorCode> for ErrorCode
 
impl From<TransferEnergyErrorCode> for ErrorCode
Source§fn from(value: TransferEnergyErrorCode) -> Self
 
fn from(value: TransferEnergyErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<TransferErrorCode> for ErrorCode
 
impl From<TransferErrorCode> for ErrorCode
Source§fn from(value: TransferErrorCode) -> Self
 
fn from(value: TransferErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<UnboostCreepErrorCode> for ErrorCode
 
impl From<UnboostCreepErrorCode> for ErrorCode
Source§fn from(value: UnboostCreepErrorCode) -> Self
 
fn from(value: UnboostCreepErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<UnclaimErrorCode> for ErrorCode
 
impl From<UnclaimErrorCode> for ErrorCode
Source§fn from(value: UnclaimErrorCode) -> Self
 
fn from(value: UnclaimErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<UnlockErrorCode> for ErrorCode
Available on crate feature mmo only. 
impl From<UnlockErrorCode> for ErrorCode
Available on crate feature 
mmo only.Source§fn from(value: UnlockErrorCode) -> Self
 
fn from(value: UnlockErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<UpgradeControllerErrorCode> for ErrorCode
 
impl From<UpgradeControllerErrorCode> for ErrorCode
Source§fn from(value: UpgradeControllerErrorCode) -> Self
 
fn from(value: UpgradeControllerErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<UpgradeErrorCode> for ErrorCode
 
impl From<UpgradeErrorCode> for ErrorCode
Source§fn from(value: UpgradeErrorCode) -> Self
 
fn from(value: UpgradeErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<UsePowerErrorCode> for ErrorCode
 
impl From<UsePowerErrorCode> for ErrorCode
Source§fn from(value: UsePowerErrorCode) -> Self
 
fn from(value: UsePowerErrorCode) -> Self
Converts to this type from the input type.
Source§impl From<WithdrawErrorCode> for ErrorCode
 
impl From<WithdrawErrorCode> for ErrorCode
Source§fn from(value: WithdrawErrorCode) -> Self
 
fn from(value: WithdrawErrorCode) -> Self
Converts to this type from the input type.
Source§impl FromPrimitive for ErrorCode
 
impl FromPrimitive for ErrorCode
Source§fn from_i64(n: i64) -> Option<Self>
 
fn from_i64(n: i64) -> Option<Self>
Converts an 
i64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u64(n: u64) -> Option<Self>
 
fn from_u64(n: u64) -> Option<Self>
Converts an 
u64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_isize(n: isize) -> Option<Self>
 
fn from_isize(n: isize) -> Option<Self>
Converts an 
isize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i8(n: i8) -> Option<Self>
 
fn from_i8(n: i8) -> Option<Self>
Converts an 
i8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i16(n: i16) -> Option<Self>
 
fn from_i16(n: i16) -> Option<Self>
Converts an 
i16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i32(n: i32) -> Option<Self>
 
fn from_i32(n: i32) -> Option<Self>
Converts an 
i32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i128(n: i128) -> Option<Self>
 
fn from_i128(n: i128) -> Option<Self>
Converts an 
i128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moreSource§fn from_usize(n: usize) -> Option<Self>
 
fn from_usize(n: usize) -> Option<Self>
Converts a 
usize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u8(n: u8) -> Option<Self>
 
fn from_u8(n: u8) -> Option<Self>
Converts an 
u8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u16(n: u16) -> Option<Self>
 
fn from_u16(n: u16) -> Option<Self>
Converts an 
u16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u32(n: u32) -> Option<Self>
 
fn from_u32(n: u32) -> Option<Self>
Converts an 
u32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u128(n: u128) -> Option<Self>
 
fn from_u128(n: u128) -> Option<Self>
Converts an 
u128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moreSource§impl FromReturnCode for ErrorCode
 
impl FromReturnCode for ErrorCode
impl Copy for ErrorCode
impl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnwindSafe for ErrorCode
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