[][src]Struct shalc::OuterBonds

pub struct OuterBonds<Calc> {
    pub command_tx: Sender<Command>,
    pub notification_rx: Receiver<Notification>,
    pub calc_rx: Receiver<Arc<Calc>>,
}

Outer code communicates with Shalc using this.

Fields

command_tx: Sender<Command>

Send commands to Shalc through this Sender.

If Shalc can't recieve command, it finishes calculations and drops.

notification_rx: Receiver<Notification>

Get notifications from Shalc through this Reciever.

If Shalc can't send notification, it finishes calculations and drops.

calc_rx: Receiver<Arc<Calc>>

Shalc shares calculations through this.

Attention: Shalc starts next iteration only when all clones of sended Arc<Calc> are recieved and dropped.

If Shalc can't send Arc, it finishes calculations and drops.

Trait Implementations

impl<Calc: Debug> Debug for OuterBonds<Calc>[src]

Auto Trait Implementations

impl<Calc> !RefUnwindSafe for OuterBonds<Calc>

impl<Calc> Send for OuterBonds<Calc> where
    Calc: Send + Sync

impl<Calc> !Sync for OuterBonds<Calc>

impl<Calc> Unpin for OuterBonds<Calc>

impl<Calc> !UnwindSafe for OuterBonds<Calc>

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, U> Into<U> for T where
    U: From<T>, 
[src]

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.