[][src]Type Definition openthread_sys::otSntpResponseHandler

type otSntpResponseHandler = Option<unsafe extern "C" fn(aContext: *mut c_void, aTime: u64, aResult: otError)>;

This function pointer is called when a SNTP response is received.

@param[in] aContext A pointer to application-specific context. @param[in] aTime Specifies the time at the server when the response left for the client, in UNIX time. @param[in] aResult A result of the SNTP transaction.

@retval OT_ERROR_NONE A response was received successfully and time is provided in @p aTime. @retval OT_ERROR_ABORT A SNTP transaction was aborted by stack. @retval OT_ERROR_BUSY The Kiss-o'-death packet has been received. @retval OT_ERROR_RESPONSE_TIMEOUT No SNTP response has been received within timeout. @retval OT_ERROR_FAILED A response was received but contains incorrect data.