Trait querent_synapse::comm::channel::ChannelInterface

source ·
pub trait ChannelInterface {
    // Required methods
    fn receive_tokens_in_python(&mut self) -> Option<IngestedTokens>;
    fn send_tokens_in_rust(&mut self, tokens: IngestedTokens);
    fn receive_in_python(&mut self) -> Option<MessageState>;
    fn send_in_rust(
        &mut self,
        message_type: MessageType,
        message_data: MessageState
    );
}

Required Methods§

source

fn receive_tokens_in_python(&mut self) -> Option<IngestedTokens>

Receive tokens in python from rust

source

fn send_tokens_in_rust(&mut self, tokens: IngestedTokens)

Send tokens in rust from python

source

fn receive_in_python(&mut self) -> Option<MessageState>

Receive a message in python from rust

source

fn send_in_rust( &mut self, message_type: MessageType, message_data: MessageState )

Send a message in rust from python

Implementors§