Struct twilight_model::gateway::ShardIdParseError
source · pub struct ShardIdParseError { /* private fields */ }
Implementations§
source§impl ShardIdParseError
impl ShardIdParseError
sourcepub const fn kind(&self) -> &ShardIdParseErrorType
pub const fn kind(&self) -> &ShardIdParseErrorType
Immutable reference to the type of error that occurred.
sourcepub fn into_source(self) -> Option<Box<dyn Error + Send + Sync>>
pub fn into_source(self) -> Option<Box<dyn Error + Send + Sync>>
Consume the error, returning the source error if there is any.
sourcepub fn into_parts(
self
) -> (ShardIdParseErrorType, Option<Box<dyn Error + Send + Sync>>)
pub fn into_parts(
self
) -> (ShardIdParseErrorType, Option<Box<dyn Error + Send + Sync>>)
Consume the error, returning the owned error type and the source error.