Struct ockam_core::Route[][src]

pub struct Route { /* fields omitted */ }

A full route to a peer

Implementations

impl Route[src]

pub fn new() -> RouteBuilder<'static>[src]

Create an empty RouteBuilder

pub fn parse<S: Into<String>>(s: S) -> Option<Route>[src]

Parse a route from a string

pub fn modify(&mut self) -> RouteBuilder<'_>[src]

Create a new RouteBuilder from the current Route

pub fn step(&mut self) -> Result<Address>[src]

Get the next item from this route

pub fn next(&self) -> Result<&Address>[src]

Get the next item from this route without removing it

pub fn recipient(&self) -> Address[src]

Get the final recipient address

Trait Implementations

impl Clone for Route[src]

impl Debug for Route[src]

impl<'de> Deserialize<'de> for Route[src]

impl Display for Route[src]

impl Eq for Route[src]

impl From<RouteBuilder<'_>> for Route[src]

impl<T: Into<Address>> From<T> for Route[src]

impl Hash for Route[src]

impl Ord for Route[src]

impl PartialEq<Route> for Route[src]

impl PartialOrd<Route> for Route[src]

impl Serialize for Route[src]

impl StructuralEq for Route[src]

impl StructuralPartialEq for Route[src]

Auto Trait Implementations

impl RefUnwindSafe for Route

impl Send for Route

impl Sync for Route

impl Unpin for Route

impl UnwindSafe for Route

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CallHasher for T where
    T: Hash + ?Sized

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,