pub struct RootActorEventPublication { /* private fields */ }Implementations§
Source§impl RootActorEventPublication
impl RootActorEventPublication
pub fn new( storage: Arc<dyn Storage>, account_sink: Arc<AccountEventSink>, owner: RootActorRuntimeWrite, ) -> Self
pub fn matches_execution(&self, session_id: &str, run_id: &str) -> bool
pub async fn publish( &self, session_id: &str, event: &AgentEvent, publish: Box<dyn FnOnce() -> bool + Send>, ) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for RootActorEventPublication
impl !UnwindSafe for RootActorEventPublication
impl Freeze for RootActorEventPublication
impl Send for RootActorEventPublication
impl Sync for RootActorEventPublication
impl Unpin for RootActorEventPublication
impl UnsafeUnpin for RootActorEventPublication
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