#[non_exhaustive]pub enum RootErrorType {
MemberUnavailable {
guild_id: Id<GuildMarker>,
user_id: Id<UserMarker>,
},
RoleUnavailable {
role_id: Id<RoleMarker>,
},
}Available 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 Freeze for RootErrorType
impl RefUnwindSafe for RootErrorType
impl Send for RootErrorType
impl Sync for RootErrorType
impl Unpin for RootErrorType
impl UnwindSafe for RootErrorType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more