pub struct Live { /* private fields */ }Implementations§
Source§impl Live
impl Live
pub fn new(exec: HttpExec) -> Self
pub fn with_exec<T>(&self, f: impl FnOnce(&mut HttpExec) -> T) -> T
pub fn exec(&self) -> HttpExec
pub fn keep_prefix(&self) -> bool
pub fn set_token(&self, token: &str)
pub fn set_refresher(&self, r: Refresher)
pub fn execute( &self, request: &OutgoingRequest, ) -> Result<HttpResponseDescriptor>
Sourcepub fn wait_for_news(&self, timeout: Duration) -> Result<News>
pub fn wait_for_news(&self, timeout: Duration) -> Result<News>
Blocks until the server pushes news for this session or timeout passes. A server without
a push channel answers Idle at once; the caller’s sync long poll is then the wait.
Auto Trait Implementations§
impl !Freeze for Live
impl RefUnwindSafe for Live
impl Send for Live
impl Sync for Live
impl Unpin for Live
impl UnsafeUnpin for Live
impl UnwindSafe for Live
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