pub struct MessageHandler<'class> { /* private fields */ }Expand description
A message-handler index tied to an immutable borrow of its class.
Implementations§
Source§impl MessageHandler<'_>
impl MessageHandler<'_>
Sourcepub fn handler_type(&self) -> HandlerType
pub fn handler_type(&self) -> HandlerType
Which stage of a send this handler runs in.
§Panics
Panics if CLIPS reports a handler type outside the four documented ones, which would mean this crate’s model of COOL is wrong.
Sourcepub fn pretty_print(&self) -> Option<&str>
pub fn pretty_print(&self) -> Option<&str>
Returns None for system handlers, which have no source pretty-print form.
Sourcepub fn is_deletable(&self) -> bool
pub fn is_deletable(&self) -> bool
Whether the handler can currently be undefined.
Auto Trait Implementations§
impl<'class> !RefUnwindSafe for MessageHandler<'class>
impl<'class> !Send for MessageHandler<'class>
impl<'class> !Sync for MessageHandler<'class>
impl<'class> !UnwindSafe for MessageHandler<'class>
impl<'class> Freeze for MessageHandler<'class>
impl<'class> Unpin for MessageHandler<'class>
impl<'class> UnsafeUnpin for MessageHandler<'class>
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