Struct libsignal_service::groups_v2::GroupsManager
source · pub struct GroupsManager<S: PushService, C: CredentialsCache> { /* private fields */ }
Implementations§
source§impl<S: PushService, C: CredentialsCache> GroupsManager<S, C>
impl<S: PushService, C: CredentialsCache> GroupsManager<S, C>
pub fn new( service_ids: ServiceIds, push_service: S, credentials_cache: C, server_public_params: ServerPublicParams, ) -> Self
pub async fn get_group( &mut self, group_secret_params: GroupSecretParams, credentials: HttpAuth, ) -> Result<Group, ServiceError>
👎Deprecated: please use fetch_encrypted_group and decrypt_group separately, which hide more of the implementation details
pub async fn fetch_encrypted_group( &mut self, master_key_bytes: &[u8], ) -> Result<Group, ServiceError>
pub async fn retrieve_avatar( &mut self, path: &str, group_secret_params: GroupSecretParams, ) -> Result<Option<Vec<u8>>, ServiceError>
pub fn decrypt_group_context( &self, group_context: GroupContextV2, ) -> Result<Option<GroupChanges>, GroupDecodingError>
Auto Trait Implementations§
impl<S, C> Freeze for GroupsManager<S, C>
impl<S, C> RefUnwindSafe for GroupsManager<S, C>where
S: RefUnwindSafe,
C: RefUnwindSafe,
impl<S, C> Send for GroupsManager<S, C>
impl<S, C> Sync for GroupsManager<S, C>
impl<S, C> Unpin for GroupsManager<S, C>
impl<S, C> UnwindSafe for GroupsManager<S, C>where
S: UnwindSafe,
C: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more