Skip to main content

IggyError

Enum IggyError 

Source
#[repr(u32)]
pub enum IggyError {
Show 219 variants Error = 1, InvalidConfiguration = 2, InvalidCommand = 3, InvalidFormat = 4, FeatureUnavailable = 5, InvalidIdentifier = 6, InvalidVersion(String), Disconnected = 8, CannotEstablishConnection = 9, CannotCreateBaseDirectory(String), CannotCreateRuntimeDirectory(String), CannotRemoveRuntimeDirectory(String), CannotCreateStateDirectory(String), StateFileNotFound = 14, StateFileCorrupted = 15, InvalidStateEntryChecksum(u64, u64, u64), CannotOpenDatabase(String), ResourceNotFound(String), CannotCloseWebSocketConnection(String), StaleClient = 30, TcpError = 31, QuicError = 32, InvalidServerAddress = 33, InvalidClientAddress = 34, InvalidIpAddress(String, String), HttpError(String), Unauthenticated = 40, Unauthorized = 41, InvalidCredentials = 42, InvalidUsername = 43, InvalidPassword = 44, InvalidUserStatus = 45, UserAlreadyExists = 46, UserInactive = 47, CannotDeleteUser(u32), CannotChangePermissions(u32), InvalidPersonalAccessTokenName = 50, PersonalAccessTokenAlreadyExists(String, u32), PersonalAccessTokensLimitReached(u32, u32), InvalidPersonalAccessToken = 53, PersonalAccessTokenExpired(String, u32), UsersLimitReached = 55, NotConnected = 61, ClientShutdown = 63, InvalidTlsDomain = 64, InvalidTlsCertificatePath = 65, InvalidTlsCertificate = 66, FailedToAddCertificate = 67, InvalidEncryptionKey = 70, CannotEncryptData = 71, CannotDecryptData = 72, InvalidJwtAlgorithm(String), InvalidJwtSecret = 74, JwtMissing = 75, CannotGenerateJwt = 76, AccessTokenMissing = 77, InvalidAccessToken = 78, InvalidSizeBytes = 80, InvalidUtf8 = 81, InvalidNumberEncoding = 82, InvalidBooleanValue = 83, InvalidNumberValue = 84, ClientNotFound(u32), InvalidClientId = 101, ConnectionClosed = 206, CannotParseHeaderKind(String), HttpResponseError(u16, String), InvalidHttpRequest = 301, InvalidJsonResponse = 302, InvalidBytesResponse = 303, EmptyResponse = 304, CannotCreateEndpoint = 305, CannotParseUrl = 306, WebSocketError = 400, WebSocketConnectionError = 401, WebSocketCloseError = 402, WebSocketReceiveError = 403, WebSocketSendError = 404, CannotCreateStreamsDirectory(String), CannotCreateStreamDirectory(u32, String), CannotCreateStreamInfo(u32), CannotUpdateStreamInfo(u32), CannotOpenStreamInfo(u32), CannotReadStreamInfo(u32), CannotCreateStream(u32), CannotDeleteStream(u32), CannotDeleteStreamDirectory(u32), StreamIdNotFound(Identifier), StreamNameNotFound(String), StreamDirectoryNotFound(String), StreamNameAlreadyExists(String), InvalidStreamName = 1_013, InvalidStreamId = 1_014, CannotReadStreams = 1_015, InvalidTopicSize(MaxTopicSize, IggyByteSize), CannotCreateTopicsDirectory(Identifier, String), CannotCreateTopicDirectory(usize, usize, String), CannotCreateTopicInfo(u32, u32), CannotUpdateTopicInfo(u32, u32), CannotOpenTopicInfo(u32, u32), CannotReadTopicInfo(u32, u32), CannotCreateTopic(u32, u32), CannotDeleteTopic(u32, u32), CannotDeleteTopicDirectory(u32, u32, String), CannotPollTopic = 2_009, TopicIdNotFound(Identifier, Identifier), TopicNameNotFound(String, String), TopicNameAlreadyExists(String, Identifier), InvalidTopicName = 2_014, TooManyPartitions = 2_015, InvalidTopicId = 2_016, CannotReadTopics(u32), InvalidReplicationFactor = 2_018, InvalidPartitionsCount = 2_019, TopicDirectoryNotFound(String), CannotCreatePartition(usize, usize, usize), CannotCreatePartitionsDirectory(usize, usize), CannotCreatePartitionDirectory(usize, usize, usize), CannotOpenPartitionLogFile = 3_003, CannotReadPartitions = 3_004, CannotDeletePartition(usize, Identifier, Identifier), CannotDeletePartitionDirectory(usize, usize, usize), PartitionNotFound(usize, Identifier, Identifier), NoPartitions(Identifier, Identifier), TopicFull(Identifier, Identifier), CannotDeleteConsumerOffsetsDirectory(String), CannotDeleteConsumerOffsetFile(String), CannotCreateConsumerOffsetsDirectory(String), CannotReadConsumerOffsets(String), ConsumerOffsetNotFound(usize), NotResolvedConsumer(Identifier), CannotOpenConsumerOffsetsFile(String), SegmentNotFound = 4_000, SegmentClosed(u64, usize), InvalidSegmentSize(u64), CannotCreateSegmentLogFile(String), CannotCreateSegmentIndexFile(String), CannotCreateSegmentTimeIndexFile(String), CannotSaveMessagesToSegment = 4_006, CannotSaveIndexToSegment = 4_007, CannotSaveTimeIndexToSegment = 4_008, InvalidMessagesCount = 4_009, CannotAppendMessage = 4_010, CannotReadMessage = 4_011, CannotReadMessageId = 4_012, CannotReadMessageState = 4_013, CannotReadMessageTimestamp = 4_014, CannotReadHeadersLength = 4_015, CannotReadHeadersPayload = 4_016, TooBigUserHeaders = 4_017, InvalidHeaderKey = 4_018, InvalidHeaderValue = 4_019, CannotReadMessageLength = 4_020, CannotReadMessagePayload = 4_021, TooBigMessagePayload = 4_022, TooManyMessages = 4_023, EmptyMessagePayload = 4_024, InvalidMessagePayloadLength = 4_025, CannotReadMessageChecksum = 4_026, InvalidMessageChecksum(u64, u64, u64), InvalidKeyValueLength = 4_028, CommandLengthError(String), InvalidSegmentsCount(u32), NonZeroOffset(u64, u32), NonZeroTimestamp(u64, u32), MissingIndex(u32), InvalidIndexesByteSize(u32), InvalidIndexesCount(u32, u32), InvalidMessagesSize(u32, u32), TooSmallMessage(u32, u32), CannotSendMessagesDueToClientDisconnection = 4_050, BackgroundSendError = 4_051, BackgroundSendTimeout = 4_052, BackgroundSendBufferFull = 4_053, BackgroundWorkerDisconnected = 4_054, BackgroundSendBufferOverflow = 4_055, ProducerSendFailed { cause: Box<IggyError>, failed: Arc<Vec<IggyMessage>>, stream_name: String, topic_name: String, }, ProducerClosed = 4_057, InvalidOffset(u64), InvalidReservedField(u64), ConsumerGroupIdNotFound(Identifier, Identifier), InvalidConsumerGroupId = 5_002, ConsumerGroupNameNotFound(String, Identifier), ConsumerGroupNameAlreadyExists(String, Identifier), InvalidConsumerGroupName = 5_005, ConsumerGroupMemberNotFound(u32, Identifier, Identifier), CannotCreateConsumerGroupInfo(usize, Identifier, Identifier), CannotDeleteConsumerGroupInfo(usize, Identifier, Identifier), MissingBaseOffsetRetainedMessageBatch = 6_000, MissingLastOffsetDeltaRetainedMessageBatch = 6_001, MissingMaxTimestampRetainedMessageBatch = 6_002, MissingLengthRetainedMessageBatch = 6_003, MissingPayloadRetainedMessageBatch = 6_004, CannotReadBatchBaseOffset = 7_000, CannotReadBatchLength = 7_001, CannotReadLastOffsetDelta = 7_002, CannotReadMaxTimestamp = 7_003, CannotReadBatchPayload = 7_004, InvalidConnectionString = 8_000, SnapshotFileCompletionFailed = 9_000, CannotSerializeResource = 10_000, CannotDeserializeResource = 10_001, CannotReadFile = 10_002, CannotReadFileMetadata = 10_003, CannotSeekFile = 10_004, CannotAppendToFile = 10_005, CannotWriteToFile = 10_006, CannotOverwriteFile = 10_007, CannotDeleteFile = 10_008, CannotSyncFile = 10_009, CannotReadIndexOffset = 10_010, CannotReadIndexPosition = 10_011, CannotReadIndexTimestamp = 10_012, TimestampOutOfRange(u64), ShardNotFound(usize, usize, usize), ShardCommunicationError = 11_001, CannotBindToSocket(String), TaskTimeout = 12_001, IoError(String),
}

Variants§

§

Error = 1

§

InvalidConfiguration = 2

§

InvalidCommand = 3

§

InvalidFormat = 4

§

FeatureUnavailable = 5

§

InvalidIdentifier = 6

§

InvalidVersion(String)

§

Disconnected = 8

§

CannotEstablishConnection = 9

§

CannotCreateBaseDirectory(String)

§

CannotCreateRuntimeDirectory(String)

§

CannotRemoveRuntimeDirectory(String)

§

CannotCreateStateDirectory(String)

§

StateFileNotFound = 14

§

StateFileCorrupted = 15

§

InvalidStateEntryChecksum(u64, u64, u64)

§

CannotOpenDatabase(String)

§

ResourceNotFound(String)

§

CannotCloseWebSocketConnection(String)

§

StaleClient = 30

§

TcpError = 31

§

QuicError = 32

§

InvalidServerAddress = 33

§

InvalidClientAddress = 34

§

InvalidIpAddress(String, String)

§

HttpError(String)

§

Unauthenticated = 40

§

Unauthorized = 41

§

InvalidCredentials = 42

§

InvalidUsername = 43

§

InvalidPassword = 44

§

InvalidUserStatus = 45

§

UserAlreadyExists = 46

§

UserInactive = 47

§

CannotDeleteUser(u32)

§

CannotChangePermissions(u32)

§

InvalidPersonalAccessTokenName = 50

§

PersonalAccessTokenAlreadyExists(String, u32)

§

PersonalAccessTokensLimitReached(u32, u32)

§

InvalidPersonalAccessToken = 53

§

PersonalAccessTokenExpired(String, u32)

§

UsersLimitReached = 55

§

NotConnected = 61

§

ClientShutdown = 63

§

InvalidTlsDomain = 64

§

InvalidTlsCertificatePath = 65

§

InvalidTlsCertificate = 66

§

FailedToAddCertificate = 67

§

InvalidEncryptionKey = 70

§

CannotEncryptData = 71

§

CannotDecryptData = 72

§

InvalidJwtAlgorithm(String)

§

InvalidJwtSecret = 74

§

JwtMissing = 75

§

CannotGenerateJwt = 76

§

AccessTokenMissing = 77

§

InvalidAccessToken = 78

§

InvalidSizeBytes = 80

§

InvalidUtf8 = 81

§

InvalidNumberEncoding = 82

§

InvalidBooleanValue = 83

§

InvalidNumberValue = 84

§

ClientNotFound(u32)

§

InvalidClientId = 101

§

ConnectionClosed = 206

§

CannotParseHeaderKind(String)

§

HttpResponseError(u16, String)

§

InvalidHttpRequest = 301

§

InvalidJsonResponse = 302

§

InvalidBytesResponse = 303

§

EmptyResponse = 304

§

CannotCreateEndpoint = 305

§

CannotParseUrl = 306

§

WebSocketError = 400

§

WebSocketConnectionError = 401

§

WebSocketCloseError = 402

§

WebSocketReceiveError = 403

§

WebSocketSendError = 404

§

CannotCreateStreamsDirectory(String)

§

CannotCreateStreamDirectory(u32, String)

§

CannotCreateStreamInfo(u32)

§

CannotUpdateStreamInfo(u32)

§

CannotOpenStreamInfo(u32)

§

CannotReadStreamInfo(u32)

§

CannotCreateStream(u32)

§

CannotDeleteStream(u32)

§

CannotDeleteStreamDirectory(u32)

§

StreamIdNotFound(Identifier)

§

StreamNameNotFound(String)

§

StreamDirectoryNotFound(String)

§

StreamNameAlreadyExists(String)

§

InvalidStreamName = 1_013

§

InvalidStreamId = 1_014

§

CannotReadStreams = 1_015

§

InvalidTopicSize(MaxTopicSize, IggyByteSize)

§

CannotCreateTopicsDirectory(Identifier, String)

§

CannotCreateTopicDirectory(usize, usize, String)

§

CannotCreateTopicInfo(u32, u32)

§

CannotUpdateTopicInfo(u32, u32)

§

CannotOpenTopicInfo(u32, u32)

§

CannotReadTopicInfo(u32, u32)

§

CannotCreateTopic(u32, u32)

§

CannotDeleteTopic(u32, u32)

§

CannotDeleteTopicDirectory(u32, u32, String)

§

CannotPollTopic = 2_009

§

TopicIdNotFound(Identifier, Identifier)

§

TopicNameNotFound(String, String)

§

TopicNameAlreadyExists(String, Identifier)

§

InvalidTopicName = 2_014

§

TooManyPartitions = 2_015

§

InvalidTopicId = 2_016

§

CannotReadTopics(u32)

§

InvalidReplicationFactor = 2_018

§

InvalidPartitionsCount = 2_019

§

TopicDirectoryNotFound(String)

§

CannotCreatePartition(usize, usize, usize)

§

CannotCreatePartitionsDirectory(usize, usize)

§

CannotCreatePartitionDirectory(usize, usize, usize)

§

CannotOpenPartitionLogFile = 3_003

§

CannotReadPartitions = 3_004

§

CannotDeletePartition(usize, Identifier, Identifier)

§

CannotDeletePartitionDirectory(usize, usize, usize)

§

PartitionNotFound(usize, Identifier, Identifier)

§

NoPartitions(Identifier, Identifier)

§

TopicFull(Identifier, Identifier)

§

CannotDeleteConsumerOffsetsDirectory(String)

§

CannotDeleteConsumerOffsetFile(String)

§

CannotCreateConsumerOffsetsDirectory(String)

§

CannotReadConsumerOffsets(String)

§

ConsumerOffsetNotFound(usize)

§

NotResolvedConsumer(Identifier)

§

CannotOpenConsumerOffsetsFile(String)

§

SegmentNotFound = 4_000

§

SegmentClosed(u64, usize)

§

InvalidSegmentSize(u64)

§

CannotCreateSegmentLogFile(String)

§

CannotCreateSegmentIndexFile(String)

§

CannotCreateSegmentTimeIndexFile(String)

§

CannotSaveMessagesToSegment = 4_006

§

CannotSaveIndexToSegment = 4_007

§

CannotSaveTimeIndexToSegment = 4_008

§

InvalidMessagesCount = 4_009

§

CannotAppendMessage = 4_010

§

CannotReadMessage = 4_011

§

CannotReadMessageId = 4_012

§

CannotReadMessageState = 4_013

§

CannotReadMessageTimestamp = 4_014

§

CannotReadHeadersLength = 4_015

§

CannotReadHeadersPayload = 4_016

§

TooBigUserHeaders = 4_017

§

InvalidHeaderKey = 4_018

§

InvalidHeaderValue = 4_019

§

CannotReadMessageLength = 4_020

§

CannotReadMessagePayload = 4_021

§

TooBigMessagePayload = 4_022

§

TooManyMessages = 4_023

§

EmptyMessagePayload = 4_024

§

InvalidMessagePayloadLength = 4_025

§

CannotReadMessageChecksum = 4_026

§

InvalidMessageChecksum(u64, u64, u64)

§

InvalidKeyValueLength = 4_028

§

CommandLengthError(String)

§

InvalidSegmentsCount(u32)

§

NonZeroOffset(u64, u32)

§

NonZeroTimestamp(u64, u32)

§

MissingIndex(u32)

§

InvalidIndexesByteSize(u32)

§

InvalidIndexesCount(u32, u32)

§

InvalidMessagesSize(u32, u32)

§

TooSmallMessage(u32, u32)

§

CannotSendMessagesDueToClientDisconnection = 4_050

§

BackgroundSendError = 4_051

§

BackgroundSendTimeout = 4_052

§

BackgroundSendBufferFull = 4_053

§

BackgroundWorkerDisconnected = 4_054

§

BackgroundSendBufferOverflow = 4_055

§

ProducerSendFailed

Fields

§stream_name: String
§topic_name: String
§

ProducerClosed = 4_057

§

InvalidOffset(u64)

§

InvalidReservedField(u64)

§

ConsumerGroupIdNotFound(Identifier, Identifier)

§

InvalidConsumerGroupId = 5_002

§

ConsumerGroupNameNotFound(String, Identifier)

§

ConsumerGroupNameAlreadyExists(String, Identifier)

§

InvalidConsumerGroupName = 5_005

§

ConsumerGroupMemberNotFound(u32, Identifier, Identifier)

§

CannotCreateConsumerGroupInfo(usize, Identifier, Identifier)

§

CannotDeleteConsumerGroupInfo(usize, Identifier, Identifier)

§

MissingBaseOffsetRetainedMessageBatch = 6_000

§

MissingLastOffsetDeltaRetainedMessageBatch = 6_001

§

MissingMaxTimestampRetainedMessageBatch = 6_002

§

MissingLengthRetainedMessageBatch = 6_003

§

MissingPayloadRetainedMessageBatch = 6_004

§

CannotReadBatchBaseOffset = 7_000

§

CannotReadBatchLength = 7_001

§

CannotReadLastOffsetDelta = 7_002

§

CannotReadMaxTimestamp = 7_003

§

CannotReadBatchPayload = 7_004

§

InvalidConnectionString = 8_000

§

SnapshotFileCompletionFailed = 9_000

§

CannotSerializeResource = 10_000

§

CannotDeserializeResource = 10_001

§

CannotReadFile = 10_002

§

CannotReadFileMetadata = 10_003

§

CannotSeekFile = 10_004

§

CannotAppendToFile = 10_005

§

CannotWriteToFile = 10_006

§

CannotOverwriteFile = 10_007

§

CannotDeleteFile = 10_008

§

CannotSyncFile = 10_009

§

CannotReadIndexOffset = 10_010

§

CannotReadIndexPosition = 10_011

§

CannotReadIndexTimestamp = 10_012

§

TimestampOutOfRange(u64)

§

ShardNotFound(usize, usize, usize)

§

ShardCommunicationError = 11_001

§

CannotBindToSocket(String)

§

TaskTimeout = 12_001

§

IoError(String)

Implementations§

Source§

impl IggyError

Source

pub fn from_repr(discriminant: u32) -> Option<IggyError>

Try to create Self from the raw representation

Source§

impl IggyError

Source

pub fn as_code(&self) -> u32

Source

pub fn as_string(&self) -> &'static str

Source

pub fn from_code(code: u32) -> Self

Source

pub fn from_code_as_string(code: u32) -> &'static str

Trait Implementations§

Source§

impl Clone for IggyError

Source§

fn clone(&self) -> IggyError

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 IggyError

Source§

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

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

impl Default for IggyError

Source§

fn default() -> IggyError

Returns the “default value” for a type. Read more
Source§

impl Display for IggyError

Source§

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

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

impl Error for IggyError

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 description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
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<'_derivative_strum> From<&'_derivative_strum IggyError> for &'static str

Source§

fn from(x: &'_derivative_strum IggyError) -> &'static str

Converts to this type from the input type.
Source§

impl<'_enum> From<&'_enum IggyError> for IggyErrorDiscriminants

Source§

fn from(val: &'_enum IggyError) -> IggyErrorDiscriminants

Converts to this type from the input type.
Source§

impl From<IggyError> for &'static str

Source§

fn from(x: IggyError) -> &'static str

Converts to this type from the input type.
Source§

impl From<IggyError> for ClientError

Source§

fn from(source: IggyError) -> Self

Converts to this type from the input type.
Source§

impl From<IggyError> for IggyErrorDiscriminants

Source§

fn from(val: IggyError) -> IggyErrorDiscriminants

Converts to this type from the input type.
Source§

impl IntoDiscriminant for IggyError

Source§

type Discriminant = IggyErrorDiscriminants

Enum listing the same variants as this enum but without any data fields
Source§

fn discriminant(&self) -> Self::Discriminant

Source§

impl PartialEq for IggyError

Source§

fn eq(&self, other: &Self) -> 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 Validatable<IggyError> for ChangePassword

Source§

impl Validatable<IggyError> for Consumer

Source§

impl Validatable<IggyError> for CreateConsumerGroup

Source§

impl Validatable<IggyError> for CreatePartitions

Source§

impl Validatable<IggyError> for CreatePersonalAccessToken

Source§

impl Validatable<IggyError> for CreateStream

Source§

impl Validatable<IggyError> for CreateTopic

Source§

impl Validatable<IggyError> for CreateUser

Source§

impl Validatable<IggyError> for DeleteConsumerGroup

Source§

impl Validatable<IggyError> for DeleteConsumerOffset

Source§

impl Validatable<IggyError> for DeletePartitions

Source§

impl Validatable<IggyError> for DeletePersonalAccessToken

Source§

impl Validatable<IggyError> for DeleteSegments

Source§

impl Validatable<IggyError> for DeleteStream

Source§

impl Validatable<IggyError> for DeleteTopic

Source§

impl Validatable<IggyError> for DeleteUser

Source§

impl Validatable<IggyError> for FlushUnsavedBuffer

Source§

impl Validatable<IggyError> for GetClient

Source§

impl Validatable<IggyError> for GetClients

Source§

impl Validatable<IggyError> for GetClusterMetadata

Source§

impl Validatable<IggyError> for GetConsumerGroup

Source§

impl Validatable<IggyError> for GetConsumerGroups

Source§

impl Validatable<IggyError> for GetConsumerOffset

Source§

impl Validatable<IggyError> for GetMe

Source§

impl Validatable<IggyError> for GetPersonalAccessTokens

Source§

impl Validatable<IggyError> for GetSnapshot

Source§

impl Validatable<IggyError> for GetStats

Source§

impl Validatable<IggyError> for GetStream

Source§

impl Validatable<IggyError> for GetStreams

Source§

impl Validatable<IggyError> for GetTopic

Source§

impl Validatable<IggyError> for GetTopics

Source§

impl Validatable<IggyError> for GetUser

Source§

impl Validatable<IggyError> for GetUsers

Source§

impl Validatable<IggyError> for Identifier

Source§

impl Validatable<IggyError> for IggyMessagesBatch

Source§

impl Validatable<IggyError> for IggyMessagesBatchMut

Source§

impl Validatable<IggyError> for JoinConsumerGroup

Source§

impl Validatable<IggyError> for LeaveConsumerGroup

Source§

impl Validatable<IggyError> for LoginUser

Source§

impl Validatable<IggyError> for LoginWithPersonalAccessToken

Source§

impl Validatable<IggyError> for LogoutUser

Source§

impl Validatable<IggyError> for Ping

Source§

impl Validatable<IggyError> for PollMessages

Source§

impl Validatable<IggyError> for PurgeStream

Source§

impl Validatable<IggyError> for PurgeTopic

Source§

impl Validatable<IggyError> for SendMessages

Source§

impl Validatable<IggyError> for StoreConsumerOffset

Source§

impl Validatable<IggyError> for UpdatePermissions

Source§

impl Validatable<IggyError> for UpdateStream

Source§

impl Validatable<IggyError> for UpdateTopic

Source§

impl Validatable<IggyError> for UpdateUser

Auto Trait Implementations§

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> 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> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
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, 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