Struct ratman_harness::ThreePoint[][src]

pub struct ThreePoint<T> {
    pub a: (Arc<Router>, Option<T>),
    pub b: (Arc<Router>, Option<T>),
    // some fields omitted
}

A very simple three-point network

This network consists of three nodes, A, middle, and B, that are topologically layed out as follows: A - middle - B. Only A and B are exposed from this struct, and initialised under the hood.

Fields

a: (Arc<Router>, Option<T>)b: (Arc<Router>, Option<T>)

Implementations

impl<T> ThreePoint<T>[src]

pub async fn new() -> Self[src]

pub fn a(&self) -> &T[src]

Get easy access to the A type

Panics if not initialised

pub fn b(&self) -> &T[src]

Get easy access to the B type

Panics if not initialised

Trait Implementations

impl<T> Initialize<T> for ThreePoint<T>[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for ThreePoint<T>

impl<T> Send for ThreePoint<T> where
    T: Send

impl<T> Sync for ThreePoint<T> where
    T: Sync

impl<T> Unpin for ThreePoint<T> where
    T: Unpin

impl<T> !UnwindSafe for ThreePoint<T>

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> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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>, 

impl<T> WithSubscriber for T[src]