Struct rust_rcs_core::cpim::cpim_message::CPIMMessage
source · 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 !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