LocalAddr

Trait LocalAddr 

Source
pub trait LocalAddr: TransportCore {
    // Required method
    fn local_addr(&self) -> &Self::Addr;
}
Expand description

Designing everything for a pratical system is hard. Designing everything correctly is impossible. That’s why a versioned spec module is prepared.

At any time top level module does wildcard re-exporting from the latest version of spec. To survive from a breaking change, change use crate::* to use crate::spec::v1::*.

Required Methods§

Source

fn local_addr(&self) -> &Self::Addr

Implementors§

Source§

impl<P: Protocol<Self, A>, A, const R: u8> LocalAddr for Engine<P, A, R>
where RecvT<Self, P, A>: Tag<R>, P::Msg: Serialize,