pub enum RouteRequest<T = ()> {
ReplaceRoute(Route<T>),
ReplaceRouteNoBroadcast(Route<T>),
ChangeRoute(Route<T>),
ChangeRouteNoBroadcast(Route<T>),
GetCurrentRoute,
}
Expand description
Input message type for interacting with the `RouteAgent’.
Variants§
ReplaceRoute(Route<T>)
Replaces the most recent Route with a new one and alerts connected components to the route change.
ReplaceRouteNoBroadcast(Route<T>)
Replaces the most recent Route with a new one, but does not alert connected components to the route change.
ChangeRoute(Route<T>)
Changes the route using a Route struct and alerts connected components to the route change.
ChangeRouteNoBroadcast(Route<T>)
Changes the route using a Route struct, but does not alert connected components to the route change.
GetCurrentRoute
Gets the current route.
Trait Implementations§
Source§impl<T: Debug> Debug for RouteRequest<T>
impl<T: Debug> Debug for RouteRequest<T>
Source§impl<'de, T> Deserialize<'de> for RouteRequest<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for RouteRequest<T>where
T: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<T> Freeze for RouteRequest<T>where
T: Freeze,
impl<T> RefUnwindSafe for RouteRequest<T>where
T: RefUnwindSafe,
impl<T> Send for RouteRequest<T>where
T: Send,
impl<T> Sync for RouteRequest<T>where
T: Sync,
impl<T> Unpin for RouteRequest<T>where
T: Unpin,
impl<T> UnwindSafe for RouteRequest<T>where
T: UnwindSafe,
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
Source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self
to a value of a Properties
struct.Source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self
to a value of a Properties
struct.