pub struct History { /* private fields */ }
Expand description
The Web History API.
The History API represents the URL and forward/backward buttons in the browser. It’s modeled as a stack where URLs can be pushed/popped, and a cursor can be moved forward/backward along the stack.
History
also implements Stream
which returns a url every time the
cursor is moved along the stack. The only time this event is not triggered is
when the cursor moves because of a new entry being pushed onto the stack.
Implementations§
Trait Implementations§
Source§impl Stream for History
impl Stream for History
impl<'pin> Unpin for Historywhere
PinnedFieldsOf<__History<'pin>>: Unpin,
Auto Trait Implementations§
impl Freeze for History
impl !RefUnwindSafe for History
impl !Send for History
impl !Sync for History
impl !UnwindSafe for History
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