[−][src]Struct vkapi::longpoll::Longpoll
Methods
impl Longpoll
[src]
pub fn new(
group_id: u32,
wait: u16,
token: Option<String>,
api_version: String,
lang: String
) -> Self
[src]
group_id: u32,
wait: u16,
token: Option<String>,
api_version: String,
lang: String
) -> Self
pub async fn start<'_>(&'_ self, callback: Box<dyn Fn(&JsonValue)>)
[src]
pub fn stop()
[src]
pub async fn poll<'_, '_>(
server: &'_ String,
key: &'_ String,
ts: String,
wait: u16
) -> JsonValue
[src]
server: &'_ String,
key: &'_ String,
ts: String,
wait: u16
) -> JsonValue
Auto Trait Implementations
impl RefUnwindSafe for Longpoll
impl Send for Longpoll
impl Sync for Longpoll
impl Unpin for Longpoll
impl UnwindSafe for Longpoll
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>,