pub enum QueuedEvent {
Bytes(Vec<u8>),
Value(Box<dyn Any + Send>),
}Expand description
One event waiting on the bus, in the form it was pushed in.
Variants§
Bytes(Vec<u8>)
Encoded by a plugin on the other side of a serialized boundary.
Value(Box<dyn Any + Send>)
Handed over by code in the engine’s own address space. The script layer that drains the bus knows the type to take it back as.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for QueuedEvent
impl !RefUnwindSafe for QueuedEvent
impl Send for QueuedEvent
impl !Sync for QueuedEvent
impl Unpin for QueuedEvent
impl UnsafeUnpin for QueuedEvent
impl !UnwindSafe for QueuedEvent
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
§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.