Skip to main content

should_fail_send

Function should_fail_send 

Source
pub fn should_fail_send() -> bool
Expand description

Check if a channel send should fail.

§Examples

use faultkit::{inject, clear, should_fail_send, Fault};

clear();
assert!(!should_fail_send());
inject(Fault::Send { fail_after: 0 });
assert!(should_fail_send());
clear();