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,
},
}
permission-calculator
only.Expand description
Type of ChannelError
that occurred.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Guild channel is not present in the cache.
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.
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.
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
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more