bastion_amqp/
lib.rs

1use lapin::ConnectionProperties;
2
3#[deprecated(note = "use bastion-executor-trait directly instead")]
4pub trait BastionExt {
5    #[deprecated(note = "use bastion-executor-trait directly instead")]
6    fn with_bastion(self) -> Self
7    where
8        Self: Sized,
9    {
10        self.with_bastion_executor()
11    }
12
13    #[deprecated(note = "use bastion-executor-trait directly instead")]
14    fn with_bastion_executor(self) -> Self
15    where
16        Self: Sized;
17}
18
19impl BastionExt for ConnectionProperties {
20    fn with_bastion_executor(self) -> Self {
21        self.with_executor(bastion_executor_trait::Bastion)
22    }
23}