pub struct NoopControlPolicy;Expand description
Control policy that supports prompts but rejects capture, abort, and resume.
Trait Implementations§
Source§impl ControlPolicy for NoopControlPolicy
impl ControlPolicy for NoopControlPolicy
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.
Source§impl Default for NoopControlPolicy
impl Default for NoopControlPolicy
Source§fn default() -> NoopControlPolicy
fn default() -> NoopControlPolicy
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NoopControlPolicy
impl RefUnwindSafe for NoopControlPolicy
impl Send for NoopControlPolicy
impl Sync for NoopControlPolicy
impl Unpin for NoopControlPolicy
impl UnsafeUnpin for NoopControlPolicy
impl UnwindSafe for NoopControlPolicy
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