pub struct PushService { /* private fields */ }Implementations§
Source§impl PushService
impl PushService
pub async fn get_attachment( &mut self, ptr: &AttachmentPointer, ) -> Result<impl AsyncRead + Send + Unpin, ServiceError>
pub async fn upload_to_cdn0( &mut self, path: &str, upload_attributes: AttachmentV2UploadAttributes, filename: String, reader: impl Read + Send, ) -> Result<(), ServiceError>
Source§impl PushService
impl PushService
pub async fn link_device( &mut self, link_request: &LinkRequest, http_auth: HttpAuth, ) -> Result<LinkResponse, ServiceError>
Source§impl PushService
impl PushService
pub fn new( cfg: impl Into<ServiceConfiguration>, credentials: Option<ServiceCredentials>, user_agent: impl AsRef<str>, ) -> Self
pub fn request( &self, method: Method, endpoint: Endpoint<'_>, auth_override: HttpAuthOverride, ) -> Result<RequestBuilder, ServiceError>
pub async fn ws<C: WebSocketType>( &mut self, path: &str, keepalive_path: &str, additional_headers: &[(&'static str, &str)], credentials: Option<ServiceCredentials>, ) -> Result<SignalWebSocket<C>, ServiceError>
Trait Implementations§
Source§impl Clone for PushService
impl Clone for PushService
Source§fn clone(&self) -> PushService
fn clone(&self) -> PushService
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PushService
impl !RefUnwindSafe for PushService
impl Send for PushService
impl Sync for PushService
impl Unpin for PushService
impl !UnwindSafe for PushService
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
§impl<T> Classify for T
impl<T> Classify for T
type Classified = T
fn classify(self) -> T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
§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> 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>
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