pub enum AuthError {
NotMember {
sender: String,
},
InsufficientPowerLevel {
required: i64,
actual: i64,
event_type: String,
},
BannedUser {
sender: String,
},
InvalidStateKey {
expected: String,
actual: String,
},
CreateWithPrevEvents,
MissingAuthEvent(String),
}Expand description
An error indicating why an event failed authorization.
Variants§
NotMember
The sender is not a member of the room (or membership is not “join”).
InsufficientPowerLevel
The sender’s power level is below the required level for this event type.
BannedUser
The sender is banned from the room.
InvalidStateKey
For m.room.member events, the state_key doesn’t match the expected
user ID for the given membership transition.
CreateWithPrevEvents
The m.room.create event has prev_events, which is forbidden.
MissingAuthEvent(String)
An auth event referenced by this event is missing from the provided state.
Trait Implementations§
impl Eq for AuthError
impl StructuralPartialEq for AuthError
Auto Trait Implementations§
impl Freeze for AuthError
impl RefUnwindSafe for AuthError
impl Send for AuthError
impl Sync for AuthError
impl Unpin for AuthError
impl UnsafeUnpin for AuthError
impl UnwindSafe for AuthError
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