pub enum Segment {
    Protocol(Protocol),
    Identity(Identity),
    Path(String),
    Metadata(String, String),
}Expand description
A single segment in a StackAddr.
This enum allows protocol stack composition across:
- networking layers (L2-L7)
- cryptographic identity layers
- metadata annotations
- resource paths
Variants§
Protocol(Protocol)
A transport or application protocol segment.
Identity(Identity)
An identity segment (NodeId, PeerId, UUID, etc.).
Path(String)
A file or resource path segment.
Metadata(String, String)
A key-value metadata pair, expressed as /meta/<key>/<value>.
Trait Implementations§
Source§impl Ord for Segment
 
impl Ord for Segment
Source§impl PartialOrd for Segment
 
impl PartialOrd for Segment
impl Eq for Segment
impl StructuralPartialEq for Segment
Auto Trait Implementations§
impl !Freeze for Segment
impl RefUnwindSafe for Segment
impl Send for Segment
impl Sync for Segment
impl Unpin for Segment
impl UnwindSafe for Segment
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