pub struct Hop<'a> {
pub engines: Vec<&'a Engine>,
pub transport: TpTransport,
pub link: Option<&'a PeerPullLink>,
}Expand description
Everything a hop needs: the rank engines (index = rank, [0] = root), the transport arm,
and (on the peer-pull arm) the publication link. Built by the caller per hop from the TP
runtime, so this module never has to own the runtime type and the borrow shapes at the
call sites stay exactly as they are today.
Fields§
§engines: Vec<&'a Engine>§transport: TpTransport§link: Option<&'a PeerPullLink>Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Hop<'a>
impl<'a> RefUnwindSafe for Hop<'a>
impl<'a> Send for Hop<'a>
impl<'a> Sync for Hop<'a>
impl<'a> Unpin for Hop<'a>
impl<'a> UnsafeUnpin for Hop<'a>
impl<'a> UnwindSafe for Hop<'a>
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