[][src]Struct erdos::scheduler::channel_manager::ChannelManager

pub struct ChannelManager { /* fields omitted */ }

Data structure that stores information needed to set up dataflow channels by constructing individual transport channels.

Methods

impl ChannelManager[src]

pub async fn new<'_>(
    graph: &'_ Graph,
    node_id: NodeId,
    channels_to_receivers: Arc<Mutex<ChannelsToReceivers>>,
    channels_to_senders: Arc<Mutex<ChannelsToSenders>>
) -> Self
[src]

Creates transport channels between connected operators on this node, transport channels for operators with streams containing dataflow channels to other nodes, and transport channels from TCP receivers to operators that are connected to streams originating on other nodes.

pub fn take_recv_endpoint<D>(
    &mut self,
    stream_id: StreamId
) -> Result<RecvEndpoint<Message<D>>, String> where
    D: Data + Deserialize<'a>, 
[src]

Takes a RecvEnvpoint from a given stream.

pub fn get_send_endpoints<D>(
    &mut self,
    stream_id: StreamId
) -> Result<Vec<SendEndpoint<Message<D>>>, String> where
    D: Data + Deserialize<'a>, 
[src]

Returns a cloned vector of the SendEndpoints for a given stream.

Auto Trait Implementations

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

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

impl<T, U> IntoPy<U> for T where
    U: FromPy<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.