pub struct Core {
pub callback_sender: Sender<CallbackEv>,
/* private fields */
}
Fields§
§callback_sender: Sender<CallbackEv>
Implementations§
Source§impl Core
impl Core
pub fn register_event<E>(
&self,
ev: Rc<E>,
handler: Callback<()>,
ready: Ready,
pollopt: PollOpt,
) -> Result<Token>where
E: Evented + 'static,
pub fn deregister_event(&self, token: &Token) -> Result<bool>
pub fn set_timeout( &self, cb: Callback<Token>, millis: u64, interval: bool, ) -> Token
pub fn next_callback_id(&self) -> i32
pub fn register_callback(&self, id: i32, cbi: CallbackImpl)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Core
impl !RefUnwindSafe for Core
impl !Send for Core
impl !Sync for Core
impl Unpin for Core
impl !UnwindSafe for Core
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