ugly, but works

This commit is contained in:
Bert Belder 2019-10-18 16:59:38 -07:00
parent 8d2d3697f8
commit a291feb5f1
No known key found for this signature in database
GPG Key ID: 7A77887B2E2ED461

View File

@ -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) {}