bastion 0.1.4-alpha.1

Fault-tolerant Runtime for Rust applications
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::any::Any;

#[derive(Clone, Debug, Default, PartialEq)]
pub struct PoisonPill;

impl PoisonPill {
    pub fn new() -> Box<PoisonPill> {
        Box::new(PoisonPill::default())
    }

    pub fn as_any(&self) -> &dyn Any {
        self
    }
}