Add clearer docs to auth_check
This commit is contained in:
parent
47b19fdc15
commit
37bff47a8e
@ -71,6 +71,9 @@ pub fn auth_types_for_event(
|
|||||||
/// The `auth_events` that are passed to this function should be a state snapshot.
|
/// The `auth_events` that are passed to this function should be a state snapshot.
|
||||||
/// We need to know if the event passes auth against some state not a recursive collection
|
/// We need to know if the event passes auth against some state not a recursive collection
|
||||||
/// of auth_events fields.
|
/// of auth_events fields.
|
||||||
|
///
|
||||||
|
/// ## Returns
|
||||||
|
/// This returns an `Error` only when serialization fails or some other fatal outcome.
|
||||||
pub fn auth_check<E: Event>(
|
pub fn auth_check<E: Event>(
|
||||||
room_version: &RoomVersionId,
|
room_version: &RoomVersionId,
|
||||||
incoming_event: &Arc<E>,
|
incoming_event: &Arc<E>,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user