pub struct Notify { /* private fields */ }
Implementations§
source§impl Notify
impl Notify
pub fn route(&self) -> &[u8] ⓘ
pub fn route_cstr(&self) -> Result<&CStr, impl Error>
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.