mirror of
https://github.com/denoland/rusty_v8.git
synced 2024-11-21 20:28:58 +00:00
ugly, but works
This commit is contained in:
parent
8d2d3697f8
commit
a291feb5f1
12
src/main.rs
12
src/main.rs
@ -22,8 +22,16 @@ mod example {
|
||||
fn extender_mut(&mut self) -> &mut ChannelExtender {
|
||||
&mut self.channel_extender
|
||||
}
|
||||
fn sendResponse(&mut self, call_id: i32, message: UniquePtr<StringBuffer>) {
|
||||
println!("call_id: {:?}, message: '{:?}'", call_id, message);
|
||||
fn sendResponse(
|
||||
&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 flushProtocolNotifications(&mut self) {}
|
||||
|
Loading…
Reference in New Issue
Block a user