#[non_exhaustive]pub struct EventOptions {
pub prepend: bool,
pub once: bool,
}Expand description
on()/on_waterfall() 注册选项(§四偏差清单:prepend 保留,影响 serial/waterfall 结果)。
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.prepend: bool插到现有监听器之前(默认追加在后)。
once: boolClaim this registration at most once, when a dispatch selects its snapshot. A preceding short circuit can still skip its actual call.
Implementations§
Source§impl EventOptions
impl EventOptions
Trait Implementations§
Source§impl Clone for EventOptions
impl Clone for EventOptions
impl Copy for EventOptions
Source§impl Debug for EventOptions
impl Debug for EventOptions
Auto Trait Implementations§
impl Freeze for EventOptions
impl RefUnwindSafe for EventOptions
impl Send for EventOptions
impl Sync for EventOptions
impl Unpin for EventOptions
impl UnsafeUnpin for EventOptions
impl UnwindSafe for EventOptions
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