pub struct DABus { /* private fields */ }Implementations
sourceimpl DABus
impl DABus
pub const fn new() -> Self
pub fn register<T: BusStop + Debug + Send + Sync + 'static>(&mut self, stop: T)
pub fn deregister<T: BusStop + Debug + Send + Sync + 'static>(
&mut self
) -> Option<T>
pub async fn fire<Tag: Unique, At: DynDebug + Sync + Send + 'static, Rt: DynDebug + Sync + Send + 'static>(
&mut self,
def: &'static EventDef<Tag, At, Rt>,
args: At
) -> Result<Rt, FireEventError>
Auto Trait Implementations
impl !RefUnwindSafe for DABus
impl Send for DABus
impl Sync for DABus
impl Unpin for DABus
impl !UnwindSafe for DABus
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more