pub struct CoreEvents {
pub info: Option<Box<dyn FnMut(&CoreInfo<'_>) + Send>>,
pub done: Option<Box<dyn FnMut(Id, u32) + Send>>,
pub error: Option<Box<dyn FnMut(Id, u32, u32, &str) + Send>>,
/* private fields */
}Expand description
Events that may be emitted by a Core proxy object.
Fields§
§info: Option<Box<dyn FnMut(&CoreInfo<'_>) + Send>>Information about the core changed.
done: Option<Box<dyn FnMut(Id, u32) + Send>>A core operation was completed.
error: Option<Box<dyn FnMut(Id, u32, u32, &str) + Send>>An error occurred on the core.
Trait Implementations§
Source§impl Default for CoreEvents
impl Default for CoreEvents
Source§fn default() -> CoreEvents
fn default() -> CoreEvents
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CoreEvents
impl !RefUnwindSafe for CoreEvents
impl Send for CoreEvents
impl !Sync for CoreEvents
impl Unpin for CoreEvents
impl !UnwindSafe for CoreEvents
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