#[non_exhaustive]pub enum TsError {
Show 196 variants
Ok = 0,
Undefined = 1,
NotImplemented = 2,
OkNoUpdate = 3,
DontNotify = 4,
LibTimeLimitReached = 5,
CommandNotFound = 256,
UnableToBindNetworkPort = 257,
NoNetworkPortAvailable = 258,
ClientInvalidId = 512,
ClientNicknameInuse = 513,
ClientInvalidErrorCode = 514,
ClientProtocolLimitReached = 515,
ClientInvalidType = 516,
ClientAlreadySubscribed = 517,
ClientNotLoggedIn = 518,
ClientCouldNotValidateIdentity = 519,
ClientInvalidPassword = 520,
ClientTooManyClonesConnected = 521,
ClientVersionOutdated = 522,
ClientIsOnline = 523,
ClientIsFlooding = 524,
ClientHacked = 525,
ClientCannotVerifyNow = 526,
ClientLoginNotPermitted = 527,
ClientNotSubscribed = 528,
ChannelInvalidId = 768,
ChannelProtocolLimitReached = 769,
ChannelAlreadyIn = 770,
ChannelNameInuse = 771,
ChannelNotEmpty = 772,
ChannelCanNotDeleteDefault = 773,
ChannelDefaultRequirePermanent = 774,
ChannelInvalidFlags = 775,
ChannelParentNotPermanent = 776,
ChannelMaxclientsReached = 777,
ChannelMaxfamilyReached = 778,
ChannelInvalidOrder = 779,
ChannelNoFiletransferSupported = 780,
ChannelInvalidPassword = 781,
ChannelIsPrivateChannel = 782,
ChannelInvalidSecurityHash = 783,
ServerInvalidId = 1_024,
ServerRunning = 1_025,
ServerIsShuttingDown = 1_026,
ServerMaxclientsReached = 1_027,
ServerInvalidPassword = 1_028,
ServerDeploymentActive = 1_029,
ServerUnableToStopOwnServer = 1_030,
ServerIsVirtual = 1_031,
ServerWrongMachineid = 1_032,
ServerIsNotRunning = 1_033,
ServerIsBooting = 1_034,
ServerStatusInvalid = 1_035,
ServerModalQuit = 1_036,
ServerVersionOutdated = 1_037,
Database = 1_280,
DatabaseEmptyResult = 1_281,
DatabaseDuplicateEntry = 1_282,
DatabaseNoModifications = 1_283,
DatabaseConstraint = 1_284,
DatabaseReinvoke = 1_285,
ParameterQuote = 1_536,
ParameterInvalidCount = 1_537,
ParameterInvalid = 1_538,
ParameterNotFound = 1_539,
ParameterConvert = 1_540,
ParameterInvalidSize = 1_541,
ParameterMissing = 1_542,
ParameterChecksum = 1_543,
VsCritical = 1_792,
ConnectionLost = 1_793,
NotConnected = 1_794,
NoCachedConnectionInfo = 1_795,
CurrentlyNotPossible = 1_796,
FailedConnectionInitialisation = 1_797,
CouldNotResolveHostname = 1_798,
InvalidServerConnectionHandlerId = 1_799,
CouldNotInitialiseInputManager = 1_800,
ClientlibraryNotInitialised = 1_801,
ServerlibraryNotInitialised = 1_802,
WhisperTooManyTargets = 1_803,
WhisperNoTargets = 1_804,
FileInvalidName = 2_048,
FileInvalidPermissions = 2_049,
FileAlreadyExists = 2_050,
FileNotFound = 2_051,
FileIoError = 2_052,
FileInvalidTransferId = 2_053,
FileInvalidPath = 2_054,
FileNoFilesAvailable = 2_055,
FileOverwriteExcludesResume = 2_056,
FileInvalidSize = 2_057,
FileAlreadyInUse = 2_058,
FileCouldNotOpenConnection = 2_059,
FileNoSpaceLeftOnDevice = 2_060,
FileExceedsFileSystemMaximumSize = 2_061,
FileTransferConnectionTimeout = 2_062,
FileConnectionLost = 2_063,
FileExceedsSuppliedSize = 2_064,
FileTransferComplete = 2_065,
FileTransferCanceled = 2_066,
FileTransferInterrupted = 2_067,
FileTransferServerQuotaExceeded = 2_068,
FileTransferClientQuotaExceeded = 2_069,
FileTransferReset = 2_070,
FileTransferLimitReached = 2_071,
SoundPreprocessorDisabled = 2_304,
SoundInternalPreprocessor = 2_305,
SoundInternalEncoder = 2_306,
SoundInternalPlayback = 2_307,
SoundNoCaptureDeviceAvailable = 2_308,
SoundNoPlaybackDeviceAvailable = 2_309,
SoundCouldNotOpenCaptureDevice = 2_310,
SoundCouldNotOpenPlaybackDevice = 2_311,
SoundHandlerHasDevice = 2_312,
SoundInvalidCaptureDevice = 2_313,
SoundInvalidPlaybackDevice = 2_314,
SoundInvalidWave = 2_315,
SoundUnsupportedWave = 2_316,
SoundOpenWave = 2_317,
SoundInternalCapture = 2_318,
SoundDeviceInUse = 2_319,
SoundDeviceAlreadyRegisterred = 2_320,
SoundUnknownDevice = 2_321,
SoundUnsupportedFrequency = 2_322,
SoundInvalidChannelCount = 2_323,
SoundReadWave = 2_324,
SoundNeedMoreData = 2_325,
SoundDeviceBusy = 2_326,
SoundNoData = 2_327,
SoundChannelMaskMismatch = 2_328,
PermissionInvalidGroupId = 2_560,
PermissionDuplicateEntry = 2_561,
PermissionInvalidPermId = 2_562,
PermissionEmptyResult = 2_563,
PermissionDefaultGroupForbidden = 2_564,
PermissionInvalidSize = 2_565,
PermissionInvalidValue = 2_566,
PermissionsGroupNotEmpty = 2_567,
PermissionsClientInsufficient = 2_568,
PermissionsInsufficientGroupPower = 2_569,
PermissionsInsufficientPermissionPower = 2_570,
PermissionTemplateGroupIsUsed = 2_571,
Permissions = 2_572,
AccountingVirtualserverLimitReached = 2_816,
AccountingSlotLimitReached = 2_817,
AccountingLicenseFileNotFound = 2_818,
AccountingLicenseDateNotOk = 2_819,
AccountingUnableToConnectToServer = 2_820,
AccountingUnknownError = 2_821,
AccountingServerError = 2_822,
AccountingInstanceLimitReached = 2_823,
AccountingInstanceCheckError = 2_824,
AccountingLicenseFileInvalid = 2_825,
AccountingRunningElsewhere = 2_826,
AccountingInstanceDuplicated = 2_827,
AccountingAlreadyStarted = 2_828,
AccountingNotStarted = 2_829,
AccountingToManyStarts = 2_830,
MessageInvalidId = 3_072,
BanInvalidId = 3_328,
ConnectFailedBanned = 3_329,
RenameFailedBanned = 3_330,
BanFlooding = 3_331,
TtsUnableToInitialize = 3_584,
PrivilegeKeyInvalid = 3_840,
VoipPjsua = 4_096,
VoipAlreadyInitialized = 4_097,
VoipTooManyAccounts = 4_098,
VoipInvalidAccount = 4_099,
VoipInternalError = 4_100,
VoipInvalidConnectionId = 4_101,
VoipCannotAnswerInitiatedCall = 4_102,
VoipNotInitialized = 4_103,
ProvisioningInvalidPassword = 4_352,
ProvisioningInvalidRequest = 4_353,
ProvisioningNoSlotsAvailable = 4_354,
ProvisioningPoolMissing = 4_355,
ProvisioningPoolUnknown = 4_356,
ProvisioningUnknownIpLocation = 4_357,
ProvisioningInternalTriesExceeded = 4_358,
ProvisioningTooManySlotsRequested = 4_359,
ProvisioningTooManyReserved = 4_360,
ProvisioningCouldNotConnect = 4_361,
ProvisioningAuthServerNotConnected = 4_368,
ProvisioningAuthDataTooLarge = 4_369,
ProvisioningAlreadyInitialized = 4_370,
ProvisioningNotInitialized = 4_371,
ProvisioningConnecting = 4_372,
ProvisioningAlreadyConnected = 4_373,
ProvisioningNotConnected = 4_374,
ProvisioningIoError = 4_375,
ProvisioningInvalidTimeout = 4_376,
ProvisioningTs3serverNotFound = 4_377,
ProvisioningNoPermission = 4_378,
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Ok = 0
unknown error code
Undefined = 1
undefined error
NotImplemented = 2
not implemented
OkNoUpdate = 3
DontNotify = 4
LibTimeLimitReached = 5
library time limit reached
CommandNotFound = 256
command not found
UnableToBindNetworkPort = 257
unable to bind network port
NoNetworkPortAvailable = 258
no network port available
ClientInvalidId = 512
invalid clientID
ClientNicknameInuse = 513
nickname is already in use
ClientInvalidErrorCode = 514
invalid error code
ClientProtocolLimitReached = 515
max clients protocol limit reached
ClientInvalidType = 516
invalid client type
ClientAlreadySubscribed = 517
already subscribed
ClientNotLoggedIn = 518
not logged in
ClientCouldNotValidateIdentity = 519
could not validate client identity
ClientInvalidPassword = 520
invalid loginname or password
ClientTooManyClonesConnected = 521
too many clones already connected
ClientVersionOutdated = 522
client version outdated, please update
ClientIsOnline = 523
client is online
ClientIsFlooding = 524
client is flooding
ClientHacked = 525
client is modified
ClientCannotVerifyNow = 526
can not verify client at this moment
ClientLoginNotPermitted = 527
client is not permitted to log in
ClientNotSubscribed = 528
client is not subscribed to the channel
ChannelInvalidId = 768
invalid channelID
ChannelProtocolLimitReached = 769
max channels protocol limit reached
ChannelAlreadyIn = 770
already member of channel
ChannelNameInuse = 771
channel name is already in use
ChannelNotEmpty = 772
channel not empty
ChannelCanNotDeleteDefault = 773
can not delete default channel
ChannelDefaultRequirePermanent = 774
default channel requires permanent
ChannelInvalidFlags = 775
invalid channel flags
ChannelParentNotPermanent = 776
permanent channel can not be child of non permanent channel
ChannelMaxclientsReached = 777
channel maxclient reached
ChannelMaxfamilyReached = 778
channel maxfamily reached
ChannelInvalidOrder = 779
invalid channel order
ChannelNoFiletransferSupported = 780
channel does not support filetransfers
ChannelInvalidPassword = 781
invalid channel password
ChannelIsPrivateChannel = 782
channel is private channel
ChannelInvalidSecurityHash = 783
invalid security hash supplied by client
ServerInvalidId = 1_024
invalid serverID
ServerRunning = 1_025
server is running
ServerIsShuttingDown = 1_026
server is shutting down
ServerMaxclientsReached = 1_027
server maxclient reached
ServerInvalidPassword = 1_028
invalid server password
ServerDeploymentActive = 1_029
deployment active
ServerUnableToStopOwnServer = 1_030
unable to stop own server in your connection class
ServerIsVirtual = 1_031
server is virtual
ServerWrongMachineid = 1_032
server wrong machineID
ServerIsNotRunning = 1_033
server is not running
ServerIsBooting = 1_034
server is booting up
ServerStatusInvalid = 1_035
server got an invalid status for this operation
ServerModalQuit = 1_036
server modal quit
ServerVersionOutdated = 1_037
server version is too old for command
Database = 1_280
database error
DatabaseEmptyResult = 1_281
database empty result set
DatabaseDuplicateEntry = 1_282
database duplicate entry
DatabaseNoModifications = 1_283
database no modifications
DatabaseConstraint = 1_284
database invalid constraint
DatabaseReinvoke = 1_285
database reinvoke command
ParameterQuote = 1_536
invalid quote
ParameterInvalidCount = 1_537
invalid parameter count
ParameterInvalid = 1_538
invalid parameter
ParameterNotFound = 1_539
parameter not found
ParameterConvert = 1_540
convert error
ParameterInvalidSize = 1_541
invalid parameter size
ParameterMissing = 1_542
missing required parameter
ParameterChecksum = 1_543
invalid checksum
VsCritical = 1_792
virtual server got a critical error
ConnectionLost = 1_793
Connection lost
NotConnected = 1_794
not connected
NoCachedConnectionInfo = 1_795
no cached connection info
CurrentlyNotPossible = 1_796
currently not possible
FailedConnectionInitialisation = 1_797
failed connection initialization
CouldNotResolveHostname = 1_798
could not resolve hostname
InvalidServerConnectionHandlerId = 1_799
invalid server connection handler ID
CouldNotInitialiseInputManager = 1_800
could not initialize Input Manager
ClientlibraryNotInitialised = 1_801
client library not initialized
ServerlibraryNotInitialised = 1_802
server library not initialized
WhisperTooManyTargets = 1_803
too many whisper targets
WhisperNoTargets = 1_804
no whisper targets found
FileInvalidName = 2_048
invalid file name
FileInvalidPermissions = 2_049
invalid file permissions
FileAlreadyExists = 2_050
file already exists
FileNotFound = 2_051
file not found
FileIoError = 2_052
file input/output error
FileInvalidTransferId = 2_053
invalid file transfer ID
FileInvalidPath = 2_054
invalid file path
FileNoFilesAvailable = 2_055
no files available
FileOverwriteExcludesResume = 2_056
overwrite excludes resume
FileInvalidSize = 2_057
invalid file size
FileAlreadyInUse = 2_058
file already in use
FileCouldNotOpenConnection = 2_059
could not open file transfer connection
FileNoSpaceLeftOnDevice = 2_060
no space left on device (disk full?)
FileExceedsFileSystemMaximumSize = 2_061
file exceeds file system’s maximum file size
FileTransferConnectionTimeout = 2_062
file transfer connection timeout
FileConnectionLost = 2_063
lost file transfer connection
FileExceedsSuppliedSize = 2_064
file exceeds supplied file size
FileTransferComplete = 2_065
file transfer complete
FileTransferCanceled = 2_066
file transfer canceled
FileTransferInterrupted = 2_067
file transfer interrupted
FileTransferServerQuotaExceeded = 2_068
file transfer server quota exceeded
FileTransferClientQuotaExceeded = 2_069
file transfer client quota exceeded
FileTransferReset = 2_070
file transfer reset
FileTransferLimitReached = 2_071
file transfer limit reached
SoundPreprocessorDisabled = 2_304
preprocessor disabled
SoundInternalPreprocessor = 2_305
internal preprocessor
SoundInternalEncoder = 2_306
internal encoder
SoundInternalPlayback = 2_307
internal playback
SoundNoCaptureDeviceAvailable = 2_308
no capture device available
SoundNoPlaybackDeviceAvailable = 2_309
no playback device available
SoundCouldNotOpenCaptureDevice = 2_310
could not open capture device
SoundCouldNotOpenPlaybackDevice = 2_311
could not open playback device
SoundHandlerHasDevice = 2_312
ServerConnectionHandler has a device registered
SoundInvalidCaptureDevice = 2_313
invalid capture device
SoundInvalidPlaybackDevice = 2_314
invalid clayback device
SoundInvalidWave = 2_315
invalid wave file
SoundUnsupportedWave = 2_316
wave file type not supported
SoundOpenWave = 2_317
could not open wave file
SoundInternalCapture = 2_318
internal capture
SoundDeviceInUse = 2_319
device still in use
SoundDeviceAlreadyRegisterred = 2_320
device already registerred
SoundUnknownDevice = 2_321
device not registered/known
SoundUnsupportedFrequency = 2_322
unsupported frequency
SoundInvalidChannelCount = 2_323
invalid channel count
SoundReadWave = 2_324
read error in wave
SoundNeedMoreData = 2_325
sound need more data
SoundDeviceBusy = 2_326
sound device was busy
SoundNoData = 2_327
there is no sound data for this period
SoundChannelMaskMismatch = 2_328
Channelmask set bits count (speakers) is not the same as (count)
PermissionInvalidGroupId = 2_560
invalid group ID
PermissionDuplicateEntry = 2_561
duplicate entry
PermissionInvalidPermId = 2_562
invalid permission ID
PermissionEmptyResult = 2_563
empty result set
PermissionDefaultGroupForbidden = 2_564
access to default group is forbidden
PermissionInvalidSize = 2_565
invalid size
PermissionInvalidValue = 2_566
invalid value
PermissionsGroupNotEmpty = 2_567
group is not empty
PermissionsClientInsufficient = 2_568
insufficient client permissions
PermissionsInsufficientGroupPower = 2_569
insufficient group modify power
PermissionsInsufficientPermissionPower = 2_570
insufficient permission modify power
PermissionTemplateGroupIsUsed = 2_571
template group is currently used
Permissions = 2_572
permission error
AccountingVirtualserverLimitReached = 2_816
virtualserver limit reached
AccountingSlotLimitReached = 2_817
max slot limit reached
AccountingLicenseFileNotFound = 2_818
license file not found
AccountingLicenseDateNotOk = 2_819
license date not ok
AccountingUnableToConnectToServer = 2_820
unable to connect to accounting server
AccountingUnknownError = 2_821
unknown accounting error
AccountingServerError = 2_822
accounting server error
AccountingInstanceLimitReached = 2_823
instance limit reached
AccountingInstanceCheckError = 2_824
instance check error
AccountingLicenseFileInvalid = 2_825
license file invalid
AccountingRunningElsewhere = 2_826
virtualserver is running elsewhere
AccountingInstanceDuplicated = 2_827
virtualserver running in same instance already
AccountingAlreadyStarted = 2_828
virtualserver already started
AccountingNotStarted = 2_829
virtualserver not started
AccountingToManyStarts = 2_830
MessageInvalidId = 3_072
invalid message id
BanInvalidId = 3_328
invalid ban id
ConnectFailedBanned = 3_329
connection failed, you are banned
RenameFailedBanned = 3_330
rename failed, new name is banned
BanFlooding = 3_331
flood ban
TtsUnableToInitialize = 3_584
unable to initialize tts
PrivilegeKeyInvalid = 3_840
invalid privilege key
VoipPjsua = 4_096
VoipAlreadyInitialized = 4_097
VoipTooManyAccounts = 4_098
VoipInvalidAccount = 4_099
VoipInternalError = 4_100
VoipInvalidConnectionId = 4_101
VoipCannotAnswerInitiatedCall = 4_102
VoipNotInitialized = 4_103
ProvisioningInvalidPassword = 4_352
invalid password
ProvisioningInvalidRequest = 4_353
invalid request
ProvisioningNoSlotsAvailable = 4_354
no(more) slots available
ProvisioningPoolMissing = 4_355
pool missing
ProvisioningPoolUnknown = 4_356
pool unknown
ProvisioningUnknownIpLocation = 4_357
unknown ip location(perhaps LAN ip?)
ProvisioningInternalTriesExceeded = 4_358
internal error(tried exceeded)
ProvisioningTooManySlotsRequested = 4_359
too many slots requested
ProvisioningTooManyReserved = 4_360
too many reserved
ProvisioningCouldNotConnect = 4_361
could not connect to provisioning server
ProvisioningAuthServerNotConnected = 4_368
authentication server not connected
ProvisioningAuthDataTooLarge = 4_369
authentication data too large
ProvisioningAlreadyInitialized = 4_370
already initialized
ProvisioningNotInitialized = 4_371
not initialized
ProvisioningConnecting = 4_372
already connecting
ProvisioningAlreadyConnected = 4_373
already connected
ProvisioningNotConnected = 4_374
ProvisioningIoError = 4_375
io_error
ProvisioningInvalidTimeout = 4_376
ProvisioningTs3serverNotFound = 4_377
ProvisioningNoPermission = 4_378
unknown permissionID
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Error
impl<'de> Deserialize<'de> for Error
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Error, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Error, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Error for Error
impl Error for Error
Source§fn description(&self) -> &str
fn description(&self) -> &str
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Source§impl FromPrimitive for Error
impl FromPrimitive for Error
Source§fn from_i64(n: i64) -> Option<Error>
fn from_i64(n: i64) -> Option<Error>
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<Error>
fn from_u64(n: u64) -> Option<Error>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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 Serialize for Error
impl Serialize for Error
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Source§impl ToPrimitive for Error
impl ToPrimitive for Error
Source§fn to_i64(&self) -> Option<i64>
fn to_i64(&self) -> Option<i64>
self
to an i64
. If the value cannot be
represented by an i64
, then None
is returned.Source§fn to_u64(&self) -> Option<u64>
fn to_u64(&self) -> Option<u64>
self
to a u64
. If the value cannot be
represented by a u64
, then None
is returned.Source§fn to_isize(&self) -> Option<isize>
fn to_isize(&self) -> Option<isize>
self
to an isize
. If the value cannot be
represented by an isize
, then None
is returned.Source§fn to_i8(&self) -> Option<i8>
fn to_i8(&self) -> Option<i8>
self
to an i8
. If the value cannot be
represented by an i8
, then None
is returned.Source§fn to_i16(&self) -> Option<i16>
fn to_i16(&self) -> Option<i16>
self
to an i16
. If the value cannot be
represented by an i16
, then None
is returned.Source§fn to_i32(&self) -> Option<i32>
fn to_i32(&self) -> Option<i32>
self
to an i32
. If the value cannot be
represented by an i32
, then None
is returned.Source§fn to_i128(&self) -> Option<i128>
fn to_i128(&self) -> Option<i128>
self
to an i128
. If the value cannot be
represented by an i128
(i64
under the default implementation), then
None
is returned. Read moreSource§fn to_usize(&self) -> Option<usize>
fn to_usize(&self) -> Option<usize>
self
to a usize
. If the value cannot be
represented by a usize
, then None
is returned.Source§fn to_u8(&self) -> Option<u8>
fn to_u8(&self) -> Option<u8>
self
to a u8
. If the value cannot be
represented by a u8
, then None
is returned.Source§fn to_u16(&self) -> Option<u16>
fn to_u16(&self) -> Option<u16>
self
to a u16
. If the value cannot be
represented by a u16
, then None
is returned.Source§fn to_u32(&self) -> Option<u32>
fn to_u32(&self) -> Option<u32>
self
to a u32
. If the value cannot be
represented by a u32
, then None
is returned.Source§fn to_u128(&self) -> Option<u128>
fn to_u128(&self) -> Option<u128>
self
to a u128
. If the value cannot be
represented by a u128
(u64
under the default implementation), then
None
is returned. Read moreimpl Copy for Error
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.Source§impl<T> FmtForward for T
impl<T> FmtForward for T
Source§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self
to use its Binary
implementation when Debug
-formatted.Source§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self
to use its Display
implementation when
Debug
-formatted.Source§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self
to use its LowerExp
implementation when
Debug
-formatted.Source§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self
to use its LowerHex
implementation when
Debug
-formatted.Source§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self
to use its Octal
implementation when Debug
-formatted.Source§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self
to use its Pointer
implementation when
Debug
-formatted.Source§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self
to use its UpperExp
implementation when
Debug
-formatted.Source§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self
to use its UpperHex
implementation when
Debug
-formatted.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>
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>
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 moreSource§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
Source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Source§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read moreSource§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read moreSource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
Source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
Source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self
, then passes self.as_ref()
into the pipe function.Source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self
, then passes self.as_mut()
into the pipe
function.Source§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self
, then passes self.deref()
into the pipe function.Source§impl<T> PipeAsRef for T
impl<T> PipeAsRef for T
Source§impl<T> PipeBorrow for T
impl<T> PipeBorrow for T
Source§impl<T> PipeDeref for T
impl<T> PipeDeref for T
Source§impl<T> PipeRef for T
impl<T> PipeRef for T
Source§impl<T> Tap for T
impl<T> Tap for T
Source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B>
of a value. Read moreSource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B>
of a value. Read moreSource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R>
view of a value. Read moreSource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R>
view of a value. Read moreSource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target
of a value. Read moreSource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target
of a value. Read moreSource§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap()
only in debug builds, and is erased in release builds.Source§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut()
only in debug builds, and is erased in release
builds.Source§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow()
only in debug builds, and is erased in release
builds.Source§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut()
only in debug builds, and is erased in release
builds.Source§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref()
only in debug builds, and is erased in release
builds.Source§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut()
only in debug builds, and is erased in release
builds.Source§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref()
only in debug builds, and is erased in release
builds.Source§impl<T> Tap for T
impl<T> Tap for T
Source§fn tap<F, R>(self, func: F) -> Selfwhere
F: FnOnce(&Self) -> R,
fn tap<F, R>(self, func: F) -> Selfwhere
F: FnOnce(&Self) -> R,
Source§fn tap_dbg<F, R>(self, func: F) -> Selfwhere
F: FnOnce(&Self) -> R,
fn tap_dbg<F, R>(self, func: F) -> Selfwhere
F: FnOnce(&Self) -> R,
tap
in debug builds, and does nothing in release builds.Source§fn tap_mut<F, R>(self, func: F) -> Selfwhere
F: FnOnce(&mut Self) -> R,
fn tap_mut<F, R>(self, func: F) -> Selfwhere
F: FnOnce(&mut Self) -> R,
Source§fn tap_mut_dbg<F, R>(self, func: F) -> Selfwhere
F: FnOnce(&mut Self) -> R,
fn tap_mut_dbg<F, R>(self, func: F) -> Selfwhere
F: FnOnce(&mut Self) -> R,
tap_mut
in debug builds, and does nothing in release builds.Source§impl<T, U> TapAsRef<U> for Twhere
U: ?Sized,
impl<T, U> TapAsRef<U> for Twhere
U: ?Sized,
Source§fn tap_ref<F, R>(self, func: F) -> Self
fn tap_ref<F, R>(self, func: F) -> Self
Source§fn tap_ref_dbg<F, R>(self, func: F) -> Self
fn tap_ref_dbg<F, R>(self, func: F) -> Self
tap_ref
in debug builds, and does nothing in release builds.Source§fn tap_ref_mut<F, R>(self, func: F) -> Self
fn tap_ref_mut<F, R>(self, func: F) -> Self
Source§impl<T, U> TapBorrow<U> for Twhere
U: ?Sized,
impl<T, U> TapBorrow<U> for Twhere
U: ?Sized,
Source§fn tap_borrow<F, R>(self, func: F) -> Self
fn tap_borrow<F, R>(self, func: F) -> Self
Source§fn tap_borrow_dbg<F, R>(self, func: F) -> Self
fn tap_borrow_dbg<F, R>(self, func: F) -> Self
tap_borrow
in debug builds, and does nothing in release builds.Source§fn tap_borrow_mut<F, R>(self, func: F) -> Self
fn tap_borrow_mut<F, R>(self, func: F) -> Self
Source§impl<T> TapDeref for T
impl<T> TapDeref for T
Source§fn tap_deref_dbg<F, R>(self, func: F) -> Self
fn tap_deref_dbg<F, R>(self, func: F) -> Self
tap_deref
in debug builds, and does nothing in release builds.Source§fn tap_deref_mut<F, R>(self, func: F) -> Self
fn tap_deref_mut<F, R>(self, func: F) -> Self
self
for modification.