Trait NonEmptyPath

Source
pub trait NonEmptyPath<N: Into<PathAddress> + Copy>: Path<N> {
    // Provided method
    fn last_hop(&self) -> &N { ... }
}
Expand description

A Path that is guaranteed to have at least one hop - the destination.

Provided Methods§

Source

fn last_hop(&self) -> &N

Gets the last hop (destination)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl NonEmptyPath<Address> for ChainPath

Source§

impl NonEmptyPath<OffchainPublicKey> for TransportPath

Source§

impl NonEmptyPath<OffchainPublicKey> for ValidatedPath