pub struct Session<E: SessionEffects> { /* private fields */ }Expand description
One dev session’s loop state.
Implementations§
Source§impl<E: SessionEffects> Session<E>
impl<E: SessionEffects> Session<E>
Sourcepub fn new(set: WatchedSet, quiet: Duration, effects: E) -> Self
pub fn new(set: WatchedSet, quiet: Duration, effects: E) -> Self
A session over the given watched set and quiet window.
Sourcepub fn run(&mut self, inputs: &Receiver<LoopInput>) -> SessionExit
pub fn run(&mut self, inputs: &Receiver<LoopInput>) -> SessionExit
Runs the loop until a terminal exit. See the module doc for the wait discipline.
Auto Trait Implementations§
impl<E> Freeze for Session<E>where
E: Freeze,
impl<E> RefUnwindSafe for Session<E>where
E: RefUnwindSafe,
impl<E> Send for Session<E>where
E: Send,
impl<E> Sync for Session<E>where
E: Sync,
impl<E> Unpin for Session<E>where
E: Unpin,
impl<E> UnsafeUnpin for Session<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for Session<E>where
E: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request