Struct rpc_it::ReplyError
source · pub struct ReplyError(_);
Methods from Deref<Target = Reply>§
pub fn errc(&self) -> ReplyCode
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.
Trait Implementations§
source§impl Debug for ReplyError
impl Debug for ReplyError
source§impl Deref for ReplyError
impl Deref for ReplyError
source§impl DerefMut for ReplyError
impl DerefMut for ReplyError
source§impl Display for ReplyError
impl Display for ReplyError
source§impl Error for ReplyError
impl Error for ReplyError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()