Skip to main content

FetchStateExt

Trait FetchStateExt 

Source
pub(super) trait FetchStateExt<Pdu: Event> {
    // Required methods
    async fn room_create_event(&self) -> Result<RoomCreateEvent<Pdu>>;
    async fn user_membership(&self, user_id: &UserId) -> Result<MembershipState>;
    async fn room_power_levels_event(&self) -> Option<RoomPowerLevelsEvent<Pdu>>;
    async fn join_rule(&self) -> Result<JoinRule>;
    async fn room_third_party_invite_event(
        &self,
        token: &str,
    ) -> Option<RoomThirdPartyInviteEvent<Pdu>>;
}

Required Methods§

Source

async fn room_create_event(&self) -> Result<RoomCreateEvent<Pdu>>

Source

async fn user_membership(&self, user_id: &UserId) -> Result<MembershipState>

Source

async fn room_power_levels_event(&self) -> Option<RoomPowerLevelsEvent<Pdu>>

Source

async fn join_rule(&self) -> Result<JoinRule>

Source

async fn room_third_party_invite_event( &self, token: &str, ) -> Option<RoomThirdPartyInviteEvent<Pdu>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<Fetch, Fut, Pdu> FetchStateExt<Pdu> for &Fetch
where Fetch: Fn(StateEventType, StateKey) -> Fut + Sync, Fut: Future<Output = Result<Pdu>>, Pdu: Event,

Source§

async fn room_create_event(&self) -> Result<RoomCreateEvent<Pdu>>

Source§

async fn user_membership(&self, user_id: &UserId) -> Result<MembershipState>

Source§

async fn room_power_levels_event(&self) -> Option<RoomPowerLevelsEvent<Pdu>>

Source§

async fn join_rule(&self) -> Result<JoinRule>

Source§

async fn room_third_party_invite_event( &self, token: &str, ) -> Option<RoomThirdPartyInviteEvent<Pdu>>

Implementors§