mirror of
https://github.com/denoland/rusty_v8.git
synced 2025-03-09 21:47:00 -04:00
ugly, but works
This commit is contained in:
parent
8d2d3697f8
commit
a291feb5f1
1 changed files with 10 additions and 2 deletions
12
src/main.rs
12
src/main.rs
|
@ -22,8 +22,16 @@ mod example {
|
||||||
fn extender_mut(&mut self) -> &mut ChannelExtender {
|
fn extender_mut(&mut self) -> &mut ChannelExtender {
|
||||||
&mut self.channel_extender
|
&mut self.channel_extender
|
||||||
}
|
}
|
||||||
fn sendResponse(&mut self, call_id: i32, message: UniquePtr<StringBuffer>) {
|
fn sendResponse(
|
||||||
println!("call_id: {:?}, message: '{:?}'", call_id, message);
|
&mut self,
|
||||||
|
call_id: i32,
|
||||||
|
mut message: UniquePtr<StringBuffer>,
|
||||||
|
) {
|
||||||
|
println!(
|
||||||
|
"call_id: {:?}, message: '{:?}'",
|
||||||
|
call_id,
|
||||||
|
message.as_mut().unwrap().string().characters16().unwrap()
|
||||||
|
);
|
||||||
}
|
}
|
||||||
fn sendNotification(&mut self, message: UniquePtr<StringBuffer>) {}
|
fn sendNotification(&mut self, message: UniquePtr<StringBuffer>) {}
|
||||||
fn flushProtocolNotifications(&mut self) {}
|
fn flushProtocolNotifications(&mut self) {}
|
||||||
|
|
Loading…
Add table
Reference in a new issue