Struct flo_http_ui::HttpSession
[−]
[src]
pub struct HttpSession<CoreUi> { /* fields omitted */ }
Represents a session running on a HTTP connection
Methods
impl<CoreUi: 'static + CoreUserInterface + Send + Sync> HttpSession<CoreUi>
[src]
pub fn new(http_ui: Arc<HttpUserInterface<CoreUi>>) -> HttpSession<CoreUi>
[src]
Creates a new session from a HTTP user interface
pub fn http_ui(&self) -> Arc<HttpUserInterface<CoreUi>>
[src]
Retrieves the HTTP user interface that this session is for
pub fn ui(&self) -> Arc<CoreUi>
[src]
Retrieves the core UI that this session is for
pub fn fall_asleep(&mut self)
[src]
Sleeps this session (stops any monitoring for events)
pub fn restart_updates(&mut self) -> Box<Future<Item = Vec<Update>, Error = ()>>
[src]
Restarts the update stream (will regenerate the 'new UI' event, which is returned in the future return value).
pub fn send_events(
&mut self,
events: Vec<Event>
) -> Box<Future<Item = Vec<Update>, Error = ()>>
[src]
&mut self,
events: Vec<Event>
) -> Box<Future<Item = Vec<Update>, Error = ()>>
Sends some updates to this object and returns the resulting update
Trait Implementations
Auto Trait Implementations
impl<CoreUi> Send for HttpSession<CoreUi> where
CoreUi: Send + Sync,
CoreUi: Send + Sync,