pub struct MemoryRouter { /* private fields */ }Expand description
In-memory router for testing.
Implementations§
Source§impl MemoryRouter
impl MemoryRouter
Sourcepub fn new() -> MemoryRouter
pub fn new() -> MemoryRouter
Create a new memory router.
Sourcepub fn history_len(&self) -> usize
pub fn history_len(&self) -> usize
Get history length.
Trait Implementations§
Source§impl Debug for MemoryRouter
impl Debug for MemoryRouter
Source§impl Default for MemoryRouter
impl Default for MemoryRouter
Source§fn default() -> MemoryRouter
fn default() -> MemoryRouter
Returns the “default value” for a type. Read more
Source§impl Router for MemoryRouter
impl Router for MemoryRouter
Navigate to a route.
Source§fn current_route(&self) -> String
fn current_route(&self) -> String
Get the current route.
Auto Trait Implementations§
impl !Freeze for MemoryRouter
impl RefUnwindSafe for MemoryRouter
impl Send for MemoryRouter
impl Sync for MemoryRouter
impl Unpin for MemoryRouter
impl UnsafeUnpin for MemoryRouter
impl UnwindSafe for MemoryRouter
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