[][src]Struct push::subscriber::PushManager

pub struct PushManager {
    config: PushConfiguration,
    pub conn: ConnectHttp,
    pub store: Store,
}

Fields

config: PushConfigurationconn: ConnectHttpstore: Store

Implementations

impl PushManager[src][]

pub fn new(config: PushConfiguration) -> Result<Self>[src]

pub fn subscribe(
    &mut self,
    channel_id: &str,
    scope: &str,
    server_key: Option<&str>
) -> Result<(RegisterResponse, Key)>
[src]

pub fn unsubscribe(&self, channel_id: Option<&str>) -> Result<bool>[src]

pub fn unsubscribe_all(&self) -> Result<bool>[src]

pub fn update(&mut self, new_token: &str) -> Result<bool>[src]

pub fn verify_connection(&mut self) -> Result<Vec<PushRecord>>[src]

pub fn decrypt(
    &self,
    uaid: &str,
    chid: &str,
    body: &str,
    encoding: &str,
    salt: Option<&str>,
    dh: Option<&str>
) -> Result<String>
[src]

pub fn get_record_by_chid(&self, chid: &str) -> Result<Option<PushRecord>>[src]

Auto Trait Implementations

impl !RefUnwindSafe for PushManager

impl Send for PushManager

impl !Sync for PushManager

impl Unpin for PushManager

impl !UnwindSafe for PushManager

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src][+]

impl<T> Borrow<T> for T where
    T: ?Sized
[src][+]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src][+]

impl<T> From<T> for T[src][+]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src][+]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src][+]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src][+]

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

The type returned in the event of a conversion error.