pub struct SessionControl { /* private fields */ }Expand description
Control handle for a ReconnectingSession.
This mirrors StreamControl, but survives reconnections by attaching
to each new stream as it is created.
Implementations§
Source§impl SessionControl
impl SessionControl
Sourcepub fn set_color_delay(&self, delay: Duration)
pub fn set_color_delay(&self, delay: Duration)
Set the color delay for scanner sync compensation.
Persists across reconnections — each new stream receives this value.
Sourcepub fn color_delay(&self) -> Duration
pub fn color_delay(&self) -> Duration
Get the current color delay.
Sourcepub fn is_stop_requested(&self) -> bool
pub fn is_stop_requested(&self) -> bool
Check if a stop has been requested.
Trait Implementations§
Source§impl Clone for SessionControl
impl Clone for SessionControl
Source§fn clone(&self) -> SessionControl
fn clone(&self) -> SessionControl
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SessionControl
impl RefUnwindSafe for SessionControl
impl Send for SessionControl
impl Sync for SessionControl
impl Unpin for SessionControl
impl UnsafeUnpin for SessionControl
impl UnwindSafe for SessionControl
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