[−][src]Struct push::communications::ConnectHttp
Connect to the Autopush server via the HTTP interface
Fields
options: PushConfiguration
uaid: Option<String>
auth: Option<String>
Implementations
impl ConnectHttp
[src]
Trait Implementations
impl Connection for ConnectHttp
[src]
fn subscribe(
&mut self,
channel_id: &str,
app_server_key: Option<&str>
) -> Result<RegisterResponse>
[src]
&mut self,
channel_id: &str,
app_server_key: Option<&str>
) -> Result<RegisterResponse>
send a new subscription request to the server, get back the server registration response.
fn unsubscribe(&self, channel_id: Option<&str>) -> Result<bool>
[src]
Drop a channel and stop receiving updates.
fn update(&mut self, new_token: &str) -> Result<bool>
[src]
Update the push server with the new OS push authorization token
fn channel_list(&self) -> Result<Vec<String>>
[src]
Get a list of server known channels. If it differs from what we have, reset the UAID, and refresh channels. Should be done once a day.
fn broadcast_subscribe(
&self,
_broadcast: BroadcastValue
) -> Result<BroadcastValue>
[src]
&self,
_broadcast: BroadcastValue
) -> Result<BroadcastValue>
fn broadcasts(&self) -> Result<BroadcastValue>
[src]
fn verify_connection(&self, channels: &[String]) -> Result<bool>
[src]
Verify that the server and client both have matching channel information. A "false" should force the client to drop the old UAID, request a new UAID from the server, and resubscribe all channels, resulting in new endpoints.
Auto Trait Implementations
impl RefUnwindSafe for ConnectHttp
impl Send for ConnectHttp
impl Sync for ConnectHttp
impl Unpin for ConnectHttp
impl UnwindSafe for ConnectHttp
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>,