Struct RawMessage
#[non_exhaustive]pub struct RawMessage {
pub tag: MessageTag,
pub format: MessageFormat,
pub data: Bytes,
}Expand description
A stored message.
Returned by RawRead.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.tag: MessageTagStatus tag of the message.
format: MessageFormatFormat of data.
data: BytesThe message as raw bytes. On EVA and EVD a MessageFormat::GW_PP
message stored on the SIM read as the SMSC address followed by the
TPDU.
Trait Implementations§
§impl Clone for RawMessage
impl Clone for RawMessage
§fn clone(&self) -> RawMessage
fn clone(&self) -> RawMessage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for RawMessage
impl Debug for RawMessage
§impl Decode for RawMessage
impl Decode for RawMessage
impl Eq for RawMessage
§impl PartialEq for RawMessage
impl PartialEq for RawMessage
impl StructuralPartialEq for RawMessage
§impl TryFrom<&Message> for RawMessage
impl TryFrom<&Message> for RawMessage
§type Error = DecodeError
type Error = DecodeError
The type returned in the event of a conversion error.
§fn try_from(message: &Message) -> Result<Self, DecodeError>
fn try_from(message: &Message) -> Result<Self, DecodeError>
Performs the conversion.
Auto Trait Implementations§
impl !Freeze for RawMessage
impl RefUnwindSafe for RawMessage
impl Send for RawMessage
impl Sync for RawMessage
impl Unpin for RawMessage
impl UnsafeUnpin for RawMessage
impl UnwindSafe for RawMessage
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