[−][src]Struct push::subscriber::PushManager
Fields
config: PushConfigurationconn: ConnectHttpstore: StoreImplementations
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]
&mut self,
channel_id: &str,
scope: &str,
server_key: Option<&str>
) -> Result<(RegisterResponse, Key)>
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]
&self,
uaid: &str,
chid: &str,
body: &str,
encoding: &str,
salt: Option<&str>,
dh: Option<&str>
) -> Result<String>
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,