pub fn reject(err_message: &str) {
    let err_message = err_message.as_bytes();
    unsafe {
        ic0::msg_reject(err_message.as_ptr() as u32, err_message.len() as u32);
    }
}
/// Rejects the current call with the given message.
/// Warning if you use this with an endpoint it will cause a trap due to the
/// message trying to return multiple responses
Rejects the current call with the given message.
Warning if you use this with an endpoint it will cause a trap due to the
message trying to return multiple responses
Rejects the current call with the given message . Warning if you use this with an endpoint it will cause a trap due to the message trying to return multiple responses
pub fn reject(err_message: &str) {
    let err_message = err_message.as_bytes();
    unsafe {
        ic0::msg_reject(err_message.as_ptr() as u32, err_message.len() as u32);
    }
}
pub fn reject ( err_message : & str ) { let err_message = err_message . as_bytes ( ) ; unsafe { ic0 :: msg_reject ( err_message . as_ptr ( ) as u32 , err_message . len ( ) as u32 ) ; } }
Rejects the current call with the given message.
Rejects the current call with the given message .
err_message
&str
err_message
&str