pub struct AlertRoute { /* private fields */ }Expand description
启动期解析的具体队列路由;热路径不解析 provider 名称,不执行用户回调。
Implementations§
Source§impl AlertRoute
impl AlertRoute
Sourcepub fn try_send(&self, notification: Notification) -> EnqueueOutcome
pub fn try_send(&self, notification: Notification) -> EnqueueOutcome
业务作用:尝试移交通知所有权,满队列采用 drop-new 并记录稳定丢弃原因。
参数说明:
notification:是规则命中后才构造的有界消息。
返回:入队、容量不足、停止或未初始化时忽略;本方法从不等待消费者或业务实现。
Trait Implementations§
Auto Trait Implementations§
impl Forget for AlertRoute
impl Freeze for AlertRoute
impl Move for AlertRoute
impl RefUnwindSafe for AlertRoute
impl Send for AlertRoute
impl Sync for AlertRoute
impl Unpin for AlertRoute
impl UnsafeUnpin for AlertRoute
impl UnwindSafe for AlertRoute
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