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§
sourcefn receive_tokens_in_python(&mut self) -> Option<IngestedTokens>
fn receive_tokens_in_python(&mut self) -> Option<IngestedTokens>
Receive tokens in python from rust
sourcefn send_tokens_in_rust(&mut self, tokens: IngestedTokens)
fn send_tokens_in_rust(&mut self, tokens: IngestedTokens)
Send tokens in rust from python
sourcefn receive_in_python(&mut self) -> Option<MessageState>
fn receive_in_python(&mut self) -> Option<MessageState>
Receive a message in python from rust
sourcefn send_in_rust(
&mut self,
message_type: MessageType,
message_data: MessageState
)
fn send_in_rust( &mut self, message_type: MessageType, message_data: MessageState )
Send a message in rust from python