pub struct SystemContext<State> {
pub router: Router<State>,
}
Expand description
A router for actions that can be invoked as services.
Fields§
§router: Router<State>
Any routes that have been mounted on a routed system.
Trait Implementations§
Source§impl<State: Clone> Clone for SystemContext<State>
impl<State: Clone> Clone for SystemContext<State>
Source§fn clone(&self) -> SystemContext<State>
fn clone(&self) -> SystemContext<State>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<State: Debug> Debug for SystemContext<State>
impl<State: Debug> Debug for SystemContext<State>
Source§impl<State: Default> Default for SystemContext<State>
impl<State: Default> Default for SystemContext<State>
Source§fn default() -> SystemContext<State>
fn default() -> SystemContext<State>
Returns the “default value” for a type. Read more
Source§impl<State> From<Router<State>> for SystemContext<State>
impl<State> From<Router<State>> for SystemContext<State>
Source§impl<State> From<SystemContext<State>> for ActionContext<State>
impl<State> From<SystemContext<State>> for ActionContext<State>
Source§fn from(context: SystemContext<State>) -> Self
fn from(context: SystemContext<State>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<State> Freeze for SystemContext<State>
impl<State> !RefUnwindSafe for SystemContext<State>
impl<State> Send for SystemContext<State>
impl<State> Sync for SystemContext<State>
impl<State> Unpin for SystemContext<State>
impl<State> !UnwindSafe for SystemContext<State>
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