pub struct ListenSession {
pub protocol: Protocol,
}
Fields§
§protocol: Protocol
Trait Implementations§
Source§impl ProxySession for ListenSession
impl ProxySession for ListenSession
Source§fn last_event(&self) -> Instant
fn last_event(&self) -> Instant
last time the session got an event
Source§fn print_session(&self)
fn print_session(&self)
display the session’s internal state (for debugging purpose)
Source§fn frontend_token(&self) -> Token
fn frontend_token(&self) -> Token
get the token associated with the frontend
Source§fn ready(&mut self, _session: Rc<RefCell<dyn ProxySession>>) -> bool
fn ready(&mut self, _session: Rc<RefCell<dyn ProxySession>>) -> bool
if a session received an event or can still execute, the event loop will
call this method. Its result indicates if it can still execute, needs to
connect to a backend server, close the session
Source§fn shutting_down(&mut self) -> bool
fn shutting_down(&mut self) -> bool
tell the session it has to shut down if possible Read more
Source§fn update_readiness(&mut self, _token: Token, _events: Ready)
fn update_readiness(&mut self, _token: Token, _events: Ready)
if the event loop got an event for a token associated with the session,
it will call this method on the session
Auto Trait Implementations§
impl Freeze for ListenSession
impl RefUnwindSafe for ListenSession
impl Send for ListenSession
impl Sync for ListenSession
impl Unpin for ListenSession
impl UnwindSafe for ListenSession
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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