pub enum Behaviour {
Prevent,
Stop,
Once,
Capture,
Passive,
}Expand description
The behavioural qualifiers: they shape what happens to the event, not which event it is.
Variants§
Prevent
.prevent — the browser’s default action (a form posting, a link following) does not run.
Stop
.stop — the event does not propagate to the element’s ancestors.
Once
.once — the listener answers the first event and is then removed.
Capture
.capture — the listener runs in the capture phase, before the target’s own listeners.
Passive
.passive — the listener promises not to prevent the default action.
Implementations§
Trait Implementations§
impl Copy for Behaviour
impl Eq for Behaviour
impl StructuralPartialEq for Behaviour
Auto Trait Implementations§
impl Freeze for Behaviour
impl RefUnwindSafe for Behaviour
impl Send for Behaviour
impl Sync for Behaviour
impl Unpin for Behaviour
impl UnsafeUnpin for Behaviour
impl UnwindSafe for Behaviour
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.