pub struct CPIMMessage {
pub ns: CPIMNamespace,
pub headers: CPIMHeaders,
pub body: Body,
}
Fields§
§ns: CPIMNamespace
§headers: CPIMHeaders
§body: Body
Implementations§
Source§impl<'a> CPIMMessage
impl<'a> CPIMMessage
pub fn new( namespaces: &[(&[u8], &[u8])], headers: Vec<Header>, body: Body, ) -> CPIMMessage
pub fn try_from(body: &Body) -> Result<CPIMMessage, &'static str>
pub fn get_info(&self) -> Result<CPIMInfo<'_>, &'static str>
pub fn get_message_body(&'a self) -> Option<(Option<&'a [u8]>, &'a [u8], bool)>
pub fn contains_imdn(&self) -> bool
Trait Implementations§
Source§impl<'a> GetIMDNInfo<'a> for CPIMMessage
impl<'a> GetIMDNInfo<'a> for CPIMMessage
Auto Trait Implementations§
impl Freeze for CPIMMessage
impl !RefUnwindSafe for CPIMMessage
impl Send for CPIMMessage
impl Sync for CPIMMessage
impl Unpin for CPIMMessage
impl !UnwindSafe for CPIMMessage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more