pub struct AwcPushService { /* private fields */ }

Implementations§

source§

impl AwcPushService

source

pub fn new( cfg: impl Into<ServiceConfiguration>, credentials: Option<ServiceCredentials>, user_agent: String, ) -> Self

Trait Implementations§

source§

impl Clone for AwcPushService

source§

fn clone(&self) -> AwcPushService

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl PushService for AwcPushService

source§

fn delete_json<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait, T>( &'life0 mut self, endpoint: Endpoint, path: &'life1 str, additional_headers: &'life2 [(&'life3 str, &'life4 str)], ) -> Pin<Box<dyn Future<Output = Result<T, ServiceError>> + 'async_trait>>
where for<'de> T: Deserialize<'de> + 'async_trait, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait,

Deletes a resource through the HTTP DELETE verb.

§

type ByteStream = Box<dyn AsyncRead + Unpin>

source§

fn get_json<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait, T>( &'life0 mut self, endpoint: Endpoint, path: &'life1 str, additional_headers: &'life2 [(&'life3 str, &'life4 str)], credentials_override: HttpAuthOverride, ) -> Pin<Box<dyn Future<Output = Result<T, ServiceError>> + 'async_trait>>
where for<'de> T: Deserialize<'de> + 'async_trait, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait,

source§

fn put_json<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait, D, S>( &'life0 mut self, endpoint: Endpoint, path: &'life1 str, additional_headers: &'life2 [(&'life3 str, &'life4 str)], credentials_override: HttpAuthOverride, value: S, ) -> Pin<Box<dyn Future<Output = Result<D, ServiceError>> + 'async_trait>>
where for<'de> D: Deserialize<'de> + 'async_trait, S: Serialize + 'async_trait, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait,

source§

fn patch_json<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait, D, S>( &'life0 mut self, endpoint: Endpoint, path: &'life1 str, additional_headers: &'life2 [(&'life3 str, &'life4 str)], credentials_override: HttpAuthOverride, value: S, ) -> Pin<Box<dyn Future<Output = Result<D, ServiceError>> + 'async_trait>>
where for<'de> D: Deserialize<'de> + 'async_trait, S: Serialize + 'async_trait, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait,

source§

fn post_json<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait, D, S>( &'life0 mut self, endpoint: Endpoint, path: &'life1 str, additional_headers: &'life2 [(&'life3 str, &'life4 str)], credentials_override: HttpAuthOverride, value: S, ) -> Pin<Box<dyn Future<Output = Result<D, ServiceError>> + 'async_trait>>
where for<'de> D: Deserialize<'de> + 'async_trait, S: Serialize + 'async_trait, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait,

source§

fn get_protobuf<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait, T>( &'life0 mut self, endpoint: Endpoint, path: &'life1 str, additional_headers: &'life2 [(&'life3 str, &'life4 str)], credentials_override: HttpAuthOverride, ) -> Pin<Box<dyn Future<Output = Result<T, ServiceError>> + 'async_trait>>
where T: Default + ProtobufMessage + 'async_trait, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait,

source§

fn put_protobuf<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait, D, S>( &'life0 mut self, endpoint: Endpoint, path: &'life1 str, additional_headers: &'life2 [(&'life3 str, &'life4 str)], value: S, ) -> Pin<Box<dyn Future<Output = Result<D, ServiceError>> + 'async_trait>>
where D: Default + ProtobufMessage + 'async_trait, S: Sized + ProtobufMessage + 'async_trait, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait,

source§

fn get_from_cdn<'life0, 'life1, 'async_trait>( &'life0 mut self, cdn_id: u32, path: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Self::ByteStream, ServiceError>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Downloads larger files in streaming fashion, e.g. attachments.
source§

fn post_to_cdn0<'s, 'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'async_trait, C>( &'life0 mut self, path: &'life1 str, value: &'life2 [(&'life3 str, &'life4 str)], file: Option<(&'life5 str, &'s mut C)>, ) -> Pin<Box<dyn Future<Output = Result<(), ServiceError>> + 'async_trait>>
where C: 'async_trait + Read + Send + 's, Self: 'async_trait, 's: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait, 'life5: 'async_trait,

Upload larger file to CDN0 in legacy fashion, e.g. for attachments. Read more
source§

fn ws<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'async_trait>( &'life0 mut self, path: &'life1 str, keep_alive_path: &'life2 str, additional_headers: &'life3 [(&'life4 str, &'life5 str)], credentials: Option<ServiceCredentials>, ) -> Pin<Box<dyn Future<Output = Result<SignalWebSocket, ServiceError>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait, 'life5: 'async_trait,

§

fn devices<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<Vec<DeviceInfo>, ServiceError>> + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

Fetches a list of all devices tied to the authenticated account. Read more
§

fn get_pre_key_status<'life0, 'async_trait>( &'life0 mut self, service_id_type: ServiceIdType, ) -> Pin<Box<dyn Future<Output = Result<PreKeyStatus, ServiceError>> + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

§

fn register_pre_keys<'life0, 'async_trait>( &'life0 mut self, service_id_type: ServiceIdType, pre_key_state: PreKeyState, ) -> Pin<Box<dyn Future<Output = Result<(), ServiceError>> + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

§

fn get_attachment_by_id<'life0, 'life1, 'async_trait>( &'life0 mut self, id: &'life1 str, cdn_id: u32, ) -> Pin<Box<dyn Future<Output = Result<Self::ByteStream, ServiceError>> + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,

§

fn get_attachment<'life0, 'life1, 'async_trait>( &'life0 mut self, ptr: &'life1 AttachmentPointer, ) -> Pin<Box<dyn Future<Output = Result<Self::ByteStream, ServiceError>> + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,

§

fn get_sticker_pack_manifest<'life0, 'life1, 'async_trait>( &'life0 mut self, id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Self::ByteStream, ServiceError>> + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,

§

fn get_sticker<'life0, 'life1, 'async_trait>( &'life0 mut self, pack_id: &'life1 str, sticker_id: u32, ) -> Pin<Box<dyn Future<Output = Result<Self::ByteStream, ServiceError>> + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,

§

fn send_messages<'life0, 'async_trait>( &'life0 mut self, messages: OutgoingPushMessages, ) -> Pin<Box<dyn Future<Output = Result<SendMessageResponse, ServiceError>> + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

§

fn get_attachment_v2_upload_attributes<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<AttachmentV2UploadAttributes, ServiceError>> + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

Request AttachmentV2UploadAttributes Read more
§

fn upload_attachment<'s, 'life0, 'life1, 'async_trait, C>( &'life0 mut self, attrs: &'life1 AttachmentV2UploadAttributes, content: &'s mut C, ) -> Pin<Box<dyn Future<Output = Result<(u64, Vec<u8>), ServiceError>> + 'async_trait>>
where 's: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, C: Read + Send + 's + 'async_trait, Self: 'async_trait,

Upload attachment to CDN Read more
§

fn get_messages<'life0, 'async_trait>( &'life0 mut self, allow_stories: bool, ) -> Pin<Box<dyn Future<Output = Result<Vec<EnvelopeEntity>, ServiceError>> + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

§

fn whoami<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<WhoAmIResponse, ServiceError>> + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

Method used to check our own UUID
§

fn retrieve_profile_by_id<'life0, 'async_trait>( &'life0 mut self, address: ServiceAddress, profile_key: Option<ProfileKey>, ) -> Pin<Box<dyn Future<Output = Result<SignalServiceProfile, ServiceError>> + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

§

fn retrieve_profile_avatar<'life0, 'life1, 'async_trait>( &'life0 mut self, path: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Self::ByteStream, ServiceError>> + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,

§

fn retrieve_groups_v2_profile_avatar<'life0, 'life1, 'async_trait>( &'life0 mut self, path: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Self::ByteStream, ServiceError>> + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,

§

fn get_pre_key<'life0, 'life1, 'async_trait>( &'life0 mut self, destination: &'life1 ServiceAddress, device_id: u32, ) -> Pin<Box<dyn Future<Output = Result<PreKeyBundle, ServiceError>> + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,

§

fn get_pre_keys<'life0, 'life1, 'async_trait>( &'life0 mut self, destination: &'life1 ServiceAddress, device_id: u32, ) -> Pin<Box<dyn Future<Output = Result<Vec<PreKeyBundle>, ServiceError>> + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,

§

fn get_group<'life0, 'async_trait>( &'life0 mut self, credentials: HttpAuth, ) -> Pin<Box<dyn Future<Output = Result<Group, ServiceError>> + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

§

fn get_sender_certificate<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<SenderCertificate, ServiceError>> + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

§

fn get_uuid_only_sender_certificate<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<SenderCertificate, ServiceError>> + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

§

fn set_account_attributes<'life0, 'async_trait>( &'life0 mut self, attributes: AccountAttributes, ) -> Pin<Box<dyn Future<Output = Result<(), ServiceError>> + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

§

fn write_profile<'s, 'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'life6, 'async_trait, C, S>( &'life0 mut self, version: &'life1 ProfileKeyVersion, name: &'life2 [u8], about: &'life3 [u8], emoji: &'life4 [u8], commitment: &'life5 ProfileKeyCommitment, avatar: AvatarWrite<&'life6 mut C>, ) -> Pin<Box<dyn Future<Output = Result<Option<String>, ServiceError>> + 'async_trait>>
where 's: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait, 'life5: 'async_trait, 'life6: 'async_trait, C: Read + Send + 's + 'async_trait, S: AsRef<str> + 'async_trait, Self: 'async_trait,

Writes a profile and returns the avatar URL, if one was provided. Read more
§

fn create_verification_session<'a, 'life0, 'async_trait>( &'life0 mut self, number: &'a str, push_token: Option<&'a str>, mcc: Option<&'a str>, mnc: Option<&'a str>, ) -> Pin<Box<dyn Future<Output = Result<RegistrationSessionMetadataResponse, ServiceError>> + 'async_trait>>
where 'a: 'async_trait, 'life0: 'async_trait, Self: 'async_trait,

§

fn patch_verification_session<'a, 'life0, 'async_trait>( &'life0 mut self, session_id: &'a str, push_token: Option<&'a str>, mcc: Option<&'a str>, mnc: Option<&'a str>, captcha: Option<&'a str>, push_challenge: Option<&'a str>, ) -> Pin<Box<dyn Future<Output = Result<RegistrationSessionMetadataResponse, ServiceError>> + 'async_trait>>
where 'a: 'async_trait, 'life0: 'async_trait, Self: 'async_trait,

§

fn request_verification_code<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, session_id: &'life1 str, client: &'life2 str, transport: VerificationTransport, ) -> Pin<Box<dyn Future<Output = Result<RegistrationSessionMetadataResponse, ServiceError>> + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Self: 'async_trait,

Request a verification code. Read more
§

fn submit_verification_code<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, session_id: &'life1 str, verification_code: &'life2 str, ) -> Pin<Box<dyn Future<Output = Result<RegistrationSessionMetadataResponse, ServiceError>> + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Self: 'async_trait,

§

fn submit_registration_request<'a, 'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, registration_method: RegistrationMethod<'a>, account_attributes: AccountAttributes, skip_device_transfer: bool, aci_identity_key: &'life1 IdentityKey, pni_identity_key: &'life2 IdentityKey, device_activation_request: DeviceActivationRequest, ) -> Pin<Box<dyn Future<Output = Result<VerifyAccountResponse, ServiceError>> + 'async_trait>>
where 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, Self: 'async_trait,

§

fn distribute_pni_keys<'life0, 'life1, 'async_trait>( &'life0 mut self, pni_identity_key: &'life1 IdentityKey, device_messages: Vec<OutgoingPushMessage>, device_pni_signed_prekeys: HashMap<String, SignedPreKeyEntity>, device_pni_last_resort_kyber_prekeys: HashMap<String, KyberPreKeyEntity>, pni_registration_ids: HashMap<String, u32>, signature_valid_on_each_signed_pre_key: bool, ) -> Pin<Box<dyn Future<Output = Result<VerifyAccountResponse, ServiceError>> + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

default unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
§

impl<T> MaybeSend for T