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§
Sourcefn fetch_stitched(
&self,
key: &[u8],
) -> Result<Option<StoredGroup>, ConnectionError>
fn fetch_stitched( &self, key: &[u8], ) -> Result<Option<StoredGroup>, ConnectionError>
Same behavior as fetched, but will stitch DM groups
fn find_active_dm_group<M>(
&self,
members: M,
) -> Result<Option<StoredGroup>, ConnectionError>where
M: Display,
Sourcefn other_dms(
&self,
group_id: &[u8],
) -> Result<Vec<StoredGroup>, ConnectionError>
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.