Enum twilight_cache_inmemory::permission::ChannelErrorType [−][src]
#[non_exhaustive] pub enum ChannelErrorType { ChannelUnavailable { channel_id: ChannelId, }, MemberUnavailable { guild_id: GuildId, user_id: UserId, }, RoleUnavailable { role_id: RoleId, }, }
This is supported on crate feature
permission-calculator
only.Expand description
Type of ChannelError
that occurred.
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.
Guild channel is not present in the cache.
Show fields
The user’s member information is not available in the guild.
This could be because the user is not currently a member of the guild or because the member entity has not yet been received by the cache.
Show fields
One of the user’s roles is not available in the guild.
The reasons this could happen could be due to the cache missing a
RoleCreate
event or a user application race condition.
Show fields
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ChannelErrorType
impl Send for ChannelErrorType
impl Sync for ChannelErrorType
impl Unpin for ChannelErrorType
impl UnwindSafe for ChannelErrorType