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
impl Copy for CommandPath
Source§impl Debug for CommandPath
impl Debug for CommandPath
Source§impl Default for CommandPath
impl Default for CommandPath
impl Eq for CommandPath
Source§impl PartialEq for CommandPath
impl PartialEq for CommandPath
impl StructuralPartialEq for CommandPath
Auto Trait Implementations§
impl Forget for CommandPath
impl Freeze for CommandPath
impl Move 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