#[repr(u8)]pub enum IslandTrigger {
Load = 1,
Visible = 2,
Interaction = 3,
Idle = 4,
}Expand description
When an island should be hydrated.
Variants§
Load = 1
Hydrate as soon as the page’s JS runs.
Visible = 2
Hydrate when the island scrolls into view.
Interaction = 3
Hydrate on the first user interaction with the island.
Idle = 4
Hydrate when the main thread next goes idle.
Implementations§
Trait Implementations§
Source§impl Clone for IslandTrigger
impl Clone for IslandTrigger
impl Copy for IslandTrigger
Source§impl Debug for IslandTrigger
impl Debug for IslandTrigger
impl Eq for IslandTrigger
Source§impl PartialEq for IslandTrigger
impl PartialEq for IslandTrigger
impl StructuralPartialEq for IslandTrigger
Auto Trait Implementations§
impl Freeze for IslandTrigger
impl RefUnwindSafe for IslandTrigger
impl Send for IslandTrigger
impl Sync for IslandTrigger
impl Unpin for IslandTrigger
impl UnsafeUnpin for IslandTrigger
impl UnwindSafe for IslandTrigger
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