Enum twilight_cache_inmemory::permission::RootErrorType [−][src]
#[non_exhaustive]
pub enum RootErrorType {
MemberUnavailable {
guild_id: GuildId,
user_id: UserId,
},
RoleUnavailable {
role_id: RoleId,
},
}
This is supported on crate feature
permission-calculator
only.Expand description
Type of RootError
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.
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 RootErrorType
impl Send for RootErrorType
impl Sync for RootErrorType
impl Unpin for RootErrorType
impl UnwindSafe for RootErrorType
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