Struct ObjectType
pub struct ObjectType { /* private fields */ }Expand description
An object type being defined: Engine::object, then its handlers,
then register.
Implementations§
§impl ObjectType
impl ObjectType
pub fn exclusive<A, R, F, Fut>(self, name: &str, f: F) -> Self
pub fn exclusive<A, R, F, Fut>(self, name: &str, f: F) -> Self
Adds an exclusive handler: one call at a time per key, in arrival order; it may change state.
Adds a shared handler: it runs at once, next to other calls, and only reads state.
Auto Trait Implementations§
impl Freeze for ObjectType
impl !RefUnwindSafe for ObjectType
impl Send for ObjectType
impl Sync for ObjectType
impl Unpin for ObjectType
impl UnsafeUnpin for ObjectType
impl !UnwindSafe for ObjectType
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