QueryDms

Trait QueryDms 

Source
pub trait QueryDms {
    // Required methods
    fn fetch_stitched(
        &self,
        key: &[u8],
    ) -> Result<Option<StoredGroup>, ConnectionError>;
    fn find_active_dm_group<M>(
        &self,
        members: M,
    ) -> Result<Option<StoredGroup>, ConnectionError>
       where M: Display;
    fn other_dms(
        &self,
        group_id: &[u8],
    ) -> Result<Vec<StoredGroup>, ConnectionError>;
}

Required Methods§

Source

fn fetch_stitched( &self, key: &[u8], ) -> Result<Option<StoredGroup>, ConnectionError>

Same behavior as fetched, but will stitch DM groups

Source

fn find_active_dm_group<M>( &self, members: M, ) -> Result<Option<StoredGroup>, ConnectionError>
where M: Display,

Source

fn other_dms( &self, group_id: &[u8], ) -> Result<Vec<StoredGroup>, ConnectionError>

Load the other DMs that are stitched into this group

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<T> QueryDms for &T
where T: QueryDms,

Implementors§