/// Sends an activity to the backing dialog.
Sends an activity to the backing dialog.
Sends an activity to the backing dialog .
pub async fn send_activity_async(&self, message: String) -> Result<SendActivityOutcome> {
        unsafe {
            let c_buf: *mut c_char = &mut [0u8; 37] as *const _ as *mut c_char;
            let c_message = CString::new(message)?;
            let ret = dialog_service_connector_send_activity(
                self.handle.inner(),
                c_message.as_ptr(),
                c_buf,
            );
            convert_err(ret, "DialogServiceConnector.send_activity_async error")?;
            let interaction_id = CStr::from_ptr(c_buf).to_str()?.to_owned();
            Ok(SendActivityOutcome { interaction_id })
        }
    }
pub async fn send_activity_async ( & self , message : String ) -> Result < SendActivityOutcome > { unsafe { let c_buf : * mut c_char = & mut [ 0u8 ; 37 ] as * const _ as * mut c_char ; let c_message = CString :: new ( message ) ? ; let ret = dialog_service_connector_send_activity ( self . handle . inner ( ) , c_message . as_ptr ( ) , c_buf , ) ; convert_err ( ret , " " ) ? ; let interaction_id = CStr :: from_ptr ( c_buf ) . to_str ( ) ? . to_owned ( ) ; Ok ( SendActivityOutcome { interaction_id } ) } }
Sends an activity to the backing dialog.
Sends an activity to the backing dialog .
&self
message
String