pub struct Reply { /* private fields */ }
Implementations§
source§impl Reply
impl Reply
pub fn errc(&self) -> ReplyCode
pub fn result(self) -> Result<Reply, ReplyError>
pub fn request_id(&self) -> u64
pub fn payload(&self) -> &[u8] ⓘ
sourcepub unsafe fn payload_cstr_unchecked(&self) -> &CStr
pub unsafe fn payload_cstr_unchecked(&self) -> &CStr
In this function, the last byte is guaranteed to be NULL, but there is no guarantee that there are no NULL bytes in the middle. To avoid unnecessarily iterating over all the bytes, the function is marked as unsafe and does not perform any verification logic.