pub struct RpcSession {
pub allocator: Arc<IdAllocator>,
pub imports: Arc<ImportTable>,
pub exports: Arc<ExportTable>,
pub evaluator: Arc<Mutex<ExpressionEvaluator>>,
}
Expand description
RPC session state
Fields§
§allocator: Arc<IdAllocator>
§imports: Arc<ImportTable>
§exports: Arc<ExportTable>
§evaluator: Arc<Mutex<ExpressionEvaluator>>
Implementations§
Source§impl RpcSession
impl RpcSession
Sourcepub async fn handle_message(&self, msg: Message) -> Result<(), SessionError>
pub async fn handle_message(&self, msg: Message) -> Result<(), SessionError>
Handle an incoming message
Sourcepub async fn push(&self, _expr: Expression) -> ImportId
pub async fn push(&self, _expr: Expression) -> ImportId
Send a push message
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RpcSession
impl !RefUnwindSafe for RpcSession
impl Send for RpcSession
impl Sync for RpcSession
impl Unpin for RpcSession
impl !UnwindSafe for RpcSession
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more