pub struct SegmentedControlPolicy { /* private fields */ }Expand description
A one-shot control policy scoped to a named delimited segment.
Wraps an OneShotControlPolicy and tags it with a segment Ref,
associating its capture/resume bookkeeping with one delimited region.
Implementations§
Trait Implementations§
Source§impl ControlPolicy for SegmentedControlPolicy
impl ControlPolicy for SegmentedControlPolicy
Source§fn enter_prompt(&self, cx: &mut Cx, prompt: &ControlPrompt) -> Result<()>
fn enter_prompt(&self, cx: &mut Cx, prompt: &ControlPrompt) -> Result<()>
Enter a prompt boundary; the default is a no-op.
Source§fn capture(&self, cx: &mut Cx, capture: &ControlCapture) -> Result<Ref>
fn capture(&self, cx: &mut Cx, capture: &ControlCapture) -> Result<Ref>
Capture the continuation up to a prompt; defaults to unsupported.
Auto Trait Implementations§
impl !Freeze for SegmentedControlPolicy
impl RefUnwindSafe for SegmentedControlPolicy
impl Send for SegmentedControlPolicy
impl Sync for SegmentedControlPolicy
impl Unpin for SegmentedControlPolicy
impl UnsafeUnpin for SegmentedControlPolicy
impl UnwindSafe for SegmentedControlPolicy
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