pub enum CommandGoto {
One(NodeId),
Many(Vec<NodeId>),
}Expand description
Target for command routing.
Variants§
Implementations§
Source§impl CommandGoto
impl CommandGoto
Sourcepub fn many(nodes: impl IntoIterator<Item = impl Into<NodeId>>) -> Self
pub fn many(nodes: impl IntoIterator<Item = impl Into<NodeId>>) -> Self
Create a goto to multiple nodes.
Trait Implementations§
Source§impl Clone for CommandGoto
impl Clone for CommandGoto
Source§impl Debug for CommandGoto
impl Debug for CommandGoto
Source§impl<'de> Deserialize<'de> for CommandGoto
impl<'de> Deserialize<'de> for CommandGoto
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
Source§impl From<&str> for CommandGoto
impl From<&str> for CommandGoto
Source§impl From<NodeId> for CommandGoto
impl From<NodeId> for CommandGoto
Source§impl From<String> for CommandGoto
impl From<String> for CommandGoto
Auto Trait Implementations§
impl Freeze for CommandGoto
impl RefUnwindSafe for CommandGoto
impl Send for CommandGoto
impl Sync for CommandGoto
impl Unpin for CommandGoto
impl UnsafeUnpin for CommandGoto
impl UnwindSafe for CommandGoto
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