Enum TsError

Source
#[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
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

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 Clone for Error

Source§

fn clone(&self) -> Error

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Error

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Error

Source§

fn deserialize<__D>( __deserializer: __D, ) -> Result<Error, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Display for Error

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Error for Error

Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl FromPrimitive for Error

Source§

fn from_i64(n: i64) -> Option<Error>

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<Error>

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>

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>

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>

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>

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>

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 more
Source§

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>

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>

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>

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>

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 more
Source§

fn from_f32(n: f32) -> Option<Self>

Converts a f32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.
Source§

fn from_f64(n: f64) -> Option<Self>

Converts a f64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more
Source§

impl Hash for Error

Source§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for Error

Source§

fn eq(&self, other: &Error) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for Error

Source§

fn serialize<__S>( &self, __serializer: __S, ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl ToPrimitive for Error

Source§

fn to_i64(&self) -> Option<i64>

Converts the value of self to an i64. If the value cannot be represented by an i64, then None is returned.
Source§

fn to_u64(&self) -> Option<u64>

Converts the value of self to a u64. If the value cannot be represented by a u64, then None is returned.
Source§

fn to_isize(&self) -> Option<isize>

Converts the value of self to an isize. If the value cannot be represented by an isize, then None is returned.
Source§

fn to_i8(&self) -> Option<i8>

Converts the value of self to an i8. If the value cannot be represented by an i8, then None is returned.
Source§

fn to_i16(&self) -> Option<i16>

Converts the value of self to an i16. If the value cannot be represented by an i16, then None is returned.
Source§

fn to_i32(&self) -> Option<i32>

Converts the value of self to an i32. If the value cannot be represented by an i32, then None is returned.
Source§

fn to_i128(&self) -> Option<i128>

Converts the value of self to an i128. If the value cannot be represented by an i128 (i64 under the default implementation), then None is returned. Read more
Source§

fn to_usize(&self) -> Option<usize>

Converts the value of self to a usize. If the value cannot be represented by a usize, then None is returned.
Source§

fn to_u8(&self) -> Option<u8>

Converts the value of self to a u8. If the value cannot be represented by a u8, then None is returned.
Source§

fn to_u16(&self) -> Option<u16>

Converts the value of self to a u16. If the value cannot be represented by a u16, then None is returned.
Source§

fn to_u32(&self) -> Option<u32>

Converts the value of self to a u32. If the value cannot be represented by a u32, then None is returned.
Source§

fn to_u128(&self) -> Option<u128>

Converts the value of self to a u128. If the value cannot be represented by a u128 (u64 under the default implementation), then None is returned. Read more
Source§

fn to_f32(&self) -> Option<f32>

Converts the value of self to an f32. Overflows may map to positive or negative inifinity, otherwise None is returned if the value cannot be represented by an f32.
Source§

fn to_f64(&self) -> Option<f64>

Converts the value of self to an f64. Overflows may map to positive or negative inifinity, otherwise None is returned if the value cannot be represented by an f64. Read more
Source§

impl Copy for Error

Source§

impl Eq for Error

Source§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> Conv for T

Source§

fn conv<T>(self) -> T
where Self: Into<T>,

Converts self into T using Into<T>. Read more
Source§

impl<T> Conv for T

Source§

fn conv<T>(self) -> T
where Self: Into<T>,

Converts self into a target type. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> FmtForward for T

Source§

fn fmt_binary(self) -> FmtBinary<Self>
where Self: Binary,

Causes self to use its Binary implementation when Debug-formatted.
Source§

fn fmt_display(self) -> FmtDisplay<Self>
where Self: Display,

Causes self to use its Display implementation when Debug-formatted.
Source§

fn fmt_lower_exp(self) -> FmtLowerExp<Self>
where Self: LowerExp,

Causes self to use its LowerExp implementation when Debug-formatted.
Source§

fn fmt_lower_hex(self) -> FmtLowerHex<Self>
where Self: LowerHex,

Causes self to use its LowerHex implementation when Debug-formatted.
Source§

fn fmt_octal(self) -> FmtOctal<Self>
where Self: Octal,

Causes self to use its Octal implementation when Debug-formatted.
Source§

fn fmt_pointer(self) -> FmtPointer<Self>
where Self: Pointer,

Causes self to use its Pointer implementation when Debug-formatted.
Source§

fn fmt_upper_exp(self) -> FmtUpperExp<Self>
where Self: UpperExp,

Causes self to use its UpperExp implementation when Debug-formatted.
Source§

fn fmt_upper_hex(self) -> FmtUpperHex<Self>
where Self: UpperHex,

Causes self to use its UpperHex implementation when Debug-formatted.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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 more
Source§

impl<T> Pipe for T
where T: ?Sized,

Source§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
Source§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
Source§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where R: 'a,

Mutably borrows self and passes that borrow into the pipe function. Read more
Source§

fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
where Self: Borrow<B>, B: 'a + ?Sized, R: 'a,

Borrows self, then passes self.borrow() into the pipe function. Read more
Source§

fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
where Self: BorrowMut<B>, B: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more
Source§

fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
where Self: AsRef<U>, U: 'a + ?Sized, R: 'a,

Borrows 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
where Self: AsMut<U>, U: 'a + ?Sized, R: 'a,

Mutably borrows 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
where Self: Deref<Target = T>, T: 'a + ?Sized, R: 'a,

Borrows self, then passes self.deref() into the pipe function.
Source§

fn pipe_deref_mut<'a, T, R>( &'a mut self, func: impl FnOnce(&'a mut T) -> R, ) -> R
where Self: DerefMut<Target = T> + Deref, T: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.deref_mut() into the pipe function.
Source§

impl<T> Pipe for T

Source§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R

Pipes a value into a function that cannot ordinarily be called in suffix position. Read more
Source§

impl<T> PipeAsRef for T

Source§

fn pipe_as_ref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
where Self: AsRef<T>, T: 'a, R: 'a,

Pipes a trait borrow into a function that cannot normally be called in suffix position. Read more
Source§

fn pipe_as_mut<'a, T, R>(&'a mut self, func: impl FnOnce(&'a mut T) -> R) -> R
where Self: AsMut<T>, T: 'a, R: 'a,

Pipes a trait mutable borrow into a function that cannot normally be called in suffix position. Read more
Source§

impl<T> PipeBorrow for T

Source§

fn pipe_borrow<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
where Self: Borrow<T>, T: 'a, R: 'a,

Pipes a trait borrow into a function that cannot normally be called in suffix position. Read more
Source§

fn pipe_borrow_mut<'a, T, R>( &'a mut self, func: impl FnOnce(&'a mut T) -> R, ) -> R
where Self: BorrowMut<T>, T: 'a, R: 'a,

Pipes a trait mutable borrow into a function that cannot normally be called in suffix position. Read more
Source§

impl<T> PipeDeref for T

Source§

fn pipe_deref<'a, R>(&'a self, func: impl FnOnce(&'a Self::Target) -> R) -> R
where Self: Deref, R: 'a,

Pipes a dereference into a function that cannot normally be called in suffix position. Read more
Source§

fn pipe_deref_mut<'a, R>( &'a mut self, func: impl FnOnce(&'a mut Self::Target) -> R, ) -> R
where Self: DerefMut, R: 'a,

Pipes a mutable dereference into a function that cannot normally be called in suffix position. Read more
Source§

impl<T> PipeRef for T

Source§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Pipes a reference into a function that cannot ordinarily be called in suffix position. Read more
Source§

fn pipe_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where R: 'a,

Pipes a mutable reference into a function that cannot ordinarily be called in suffix position. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> Tap for T

Source§

fn tap(self, func: impl FnOnce(&Self)) -> Self

Immutable access to a value. Read more
Source§

fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

Mutable access to a value. Read more
Source§

fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Immutable access to the Borrow<B> of a value. Read more
Source§

fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Mutable access to the BorrowMut<B> of a value. Read more
Source§

fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Immutable access to the AsRef<R> view of a value. Read more
Source§

fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Mutable access to the AsMut<R> view of a value. Read more
Source§

fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Immutable access to the Deref::Target of a value. Read more
Source§

fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Mutable access to the Deref::Target of a value. Read more
Source§

fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

Calls .tap() only in debug builds, and is erased in release builds.
Source§

fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

Calls .tap_mut() only in debug builds, and is erased in release builds.
Source§

fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Calls .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
where Self: BorrowMut<B>, B: ?Sized,

Calls .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
where Self: AsRef<R>, R: ?Sized,

Calls .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
where Self: AsMut<R>, R: ?Sized,

Calls .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
where Self: Deref<Target = T>, T: ?Sized,

Calls .tap_deref() only in debug builds, and is erased in release builds.
Source§

fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Calls .tap_deref_mut() only in debug builds, and is erased in release builds.
Source§

impl<T> Tap for T

Source§

fn tap<F, R>(self, func: F) -> Self
where F: FnOnce(&Self) -> R,

Provides immutable access for inspection. Read more
Source§

fn tap_dbg<F, R>(self, func: F) -> Self
where F: FnOnce(&Self) -> R,

Calls tap in debug builds, and does nothing in release builds.
Source§

fn tap_mut<F, R>(self, func: F) -> Self
where F: FnOnce(&mut Self) -> R,

Provides mutable access for modification. Read more
Source§

fn tap_mut_dbg<F, R>(self, func: F) -> Self
where F: FnOnce(&mut Self) -> R,

Calls tap_mut in debug builds, and does nothing in release builds.
Source§

impl<T, U> TapAsRef<U> for T
where U: ?Sized,

Source§

fn tap_ref<F, R>(self, func: F) -> Self
where Self: AsRef<T>, F: FnOnce(&T) -> R,

Provides immutable access to the reference for inspection.
Source§

fn tap_ref_dbg<F, R>(self, func: F) -> Self
where Self: AsRef<T>, F: FnOnce(&T) -> R,

Calls tap_ref in debug builds, and does nothing in release builds.
Source§

fn tap_ref_mut<F, R>(self, func: F) -> Self
where Self: AsMut<T>, F: FnOnce(&mut T) -> R,

Provides mutable access to the reference for modification.
Source§

fn tap_ref_mut_dbg<F, R>(self, func: F) -> Self
where Self: AsMut<T>, F: FnOnce(&mut T) -> R,

Calls tap_ref_mut in debug builds, and does nothing in release builds.
Source§

impl<T, U> TapBorrow<U> for T
where U: ?Sized,

Source§

fn tap_borrow<F, R>(self, func: F) -> Self
where Self: Borrow<T>, F: FnOnce(&T) -> R,

Provides immutable access to the borrow for inspection. Read more
Source§

fn tap_borrow_dbg<F, R>(self, func: F) -> Self
where Self: Borrow<T>, F: FnOnce(&T) -> R,

Calls tap_borrow in debug builds, and does nothing in release builds.
Source§

fn tap_borrow_mut<F, R>(self, func: F) -> Self
where Self: BorrowMut<T>, F: FnOnce(&mut T) -> R,

Provides mutable access to the borrow for modification.
Source§

fn tap_borrow_mut_dbg<F, R>(self, func: F) -> Self
where Self: BorrowMut<T>, F: FnOnce(&mut T) -> R,

Calls tap_borrow_mut in debug builds, and does nothing in release builds.
Source§

impl<T> TapDeref for T

Source§

fn tap_deref<F, R>(self, func: F) -> Self
where Self: Deref, F: FnOnce(&Self::Target) -> R,

Immutably dereferences self for inspection.
Source§

fn tap_deref_dbg<F, R>(self, func: F) -> Self
where Self: Deref, F: FnOnce(&Self::Target) -> R,

Calls tap_deref in debug builds, and does nothing in release builds.
Source§

fn tap_deref_mut<F, R>(self, func: F) -> Self
where Self: DerefMut, F: FnOnce(&mut Self::Target) -> R,

Mutably dereferences self for modification.
Source§

fn tap_deref_mut_dbg<F, R>(self, func: F) -> Self
where Self: DerefMut, F: FnOnce(&mut Self::Target) -> R,

Calls tap_deref_mut in debug builds, and does nothing in release builds.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T> TryConv for T

Source§

fn try_conv<T>(self) -> Result<T, Self::Error>
where Self: TryInto<T>,

Attempts to convert self into T using TryInto<T>. Read more
Source§

impl<T> TryConv for T

Source§

fn try_conv<T>(self) -> Result<T, Self::Error>
where Self: TryInto<T>,

Attempts to convert self into a target type. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> SendSyncUnwindSafe for T
where T: Send + Sync + UnwindSafe + ?Sized,