pub struct CommandPath {
pub endpoint: Option<EndpointId>,
pub cluster: Option<ClusterId>,
pub command: Option<CommandId>,
}Expand description
CommandPathIB (§10.6.11).
Unlike the other three this has no Node field and no wildcards in practice: §8.9 makes
a command invocation address one endpoint — a wildcard invoke is permitted only in the
group case, where the endpoint comes from the group binding rather than the path.
Fields§
§endpoint: Option<EndpointId>Endpoint [0]; omitted for a group invoke.
cluster: Option<ClusterId>Cluster [1].
command: Option<CommandId>Command [2].
Implementations§
Source§impl CommandPath
impl CommandPath
Sourcepub const fn command(
endpoint: EndpointId,
cluster: ClusterId,
command: CommandId,
) -> Self
pub const fn command( endpoint: EndpointId, cluster: ClusterId, command: CommandId, ) -> Self
A path naming one command.
Sourcepub const fn concrete(&self) -> Option<(EndpointId, ClusterId, CommandId)>
pub const fn concrete(&self) -> Option<(EndpointId, ClusterId, CommandId)>
The endpoint, cluster and command, if the path names all three.
Trait Implementations§
Source§impl Clone for CommandPath
impl Clone for CommandPath
Source§fn clone(&self) -> CommandPath
fn clone(&self) -> CommandPath
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CommandPath
Source§impl Debug for CommandPath
impl Debug for CommandPath
Source§impl Default for CommandPath
impl Default for CommandPath
Source§fn default() -> CommandPath
fn default() -> CommandPath
Returns the “default value” for a type. Read more
impl Eq for CommandPath
Source§impl PartialEq for CommandPath
impl PartialEq for CommandPath
impl StructuralPartialEq for CommandPath
Auto Trait Implementations§
impl Freeze for CommandPath
impl RefUnwindSafe for CommandPath
impl Send for CommandPath
impl Sync for CommandPath
impl Unpin for CommandPath
impl UnsafeUnpin for CommandPath
impl UnwindSafe for CommandPath
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