Function ruma::state_res::event_auth::get_send_level[][src]

pub fn get_send_level<E>(
    e_type: &EventType,
    state_key: Option<String>,
    power_lvl: Option<&Arc<E>>
) -> i64 where
    E: Event
This is supported on crate feature state-res only.
Expand description

Helper function to fetch the power level needed to send an event of type e_type based on the rooms “m.room.power_level” event.