Struct ockam_core::Route [−][src]
pub struct Route { /* fields omitted */ }
A full route to a peer
Implementations
impl Route
[src]
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<'de> Deserialize<'de> for Route
[src]
impl<'de> Deserialize<'de> for Route
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl From<RouteBuilder<'_>> for Route
[src]
impl From<RouteBuilder<'_>> for Route
[src]fn from(_: RouteBuilder<'_>) -> Self
[src]
impl PartialOrd<Route> for Route
[src]
impl PartialOrd<Route> for Route
[src]impl StructuralEq for Route
[src]
impl StructuralEq for Route
[src]impl StructuralPartialEq for Route
[src]
impl StructuralPartialEq for Route
[src]Auto Trait Implementations
impl RefUnwindSafe for Route
impl RefUnwindSafe for Route
impl UnwindSafe for Route
impl UnwindSafe for Route
Blanket Implementations
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]pub fn borrow(&self) -> &TⓘNotable traits for &'_ mut I
impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Future + Unpin + ?Sized, type Output = <F as Future>::Output;impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized,
[src]
Notable traits for &'_ mut I
impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Future + Unpin + ?Sized, type Output = <F as Future>::Output;impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut TⓘNotable traits for &'_ mut I
impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Future + Unpin + ?Sized, type Output = <F as Future>::Output;impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized,
[src]
Notable traits for &'_ mut I
impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Future + Unpin + ?Sized, type Output = <F as Future>::Output;impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized,
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,