#[non_exhaustive]pub enum BiopMessage<'a> {
Directory(DirectoryMessage<'a>),
File(FileMessage<'a>),
ServiceGateway(DirectoryMessage<'a>),
Stream(StreamMessage<'a>),
StreamEvent(StreamEventMessage<'a>),
}Expand description
A parsed BIOP message — discriminated by objectKind.
TR 101 202 §4.7.4.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Directory(DirectoryMessage<'a>)
"dir\0" — DSM::DirectoryMessage.
File(FileMessage<'a>)
"fil\0" — DSM::FileMessage.
ServiceGateway(DirectoryMessage<'a>)
"srg\0" — DSM::ServiceGatewayMessage (same wire format as Directory).
Stream(StreamMessage<'a>)
"str\0" — DSM::StreamMessage.
StreamEvent(StreamEventMessage<'a>)
"ste\0" — BIOP::StreamEventMessage.
Implementations§
Trait Implementations§
Source§impl<'a> Clone for BiopMessage<'a>
impl<'a> Clone for BiopMessage<'a>
Source§fn clone(&self) -> BiopMessage<'a>
fn clone(&self) -> BiopMessage<'a>
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 moreSource§impl<'a> Debug for BiopMessage<'a>
impl<'a> Debug for BiopMessage<'a>
impl<'a> Eq for BiopMessage<'a>
Source§impl<'a> PartialEq for BiopMessage<'a>
impl<'a> PartialEq for BiopMessage<'a>
Source§fn eq(&self, other: &BiopMessage<'a>) -> bool
fn eq(&self, other: &BiopMessage<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'a> Serialize for BiopMessage<'a>
impl<'a> Serialize for BiopMessage<'a>
Source§impl Serialize for BiopMessage<'_>
impl Serialize for BiopMessage<'_>
Source§type Error = Error
type Error = Error
The error type this implementer returns (usually the same as the
corresponding
Parse impl, but need not be).Source§fn serialized_len(&self) -> usize
fn serialized_len(&self) -> usize
Number of bytes
serialize_into will write.impl<'a> StructuralPartialEq for BiopMessage<'a>
Auto Trait Implementations§
impl<'a> Freeze for BiopMessage<'a>
impl<'a> RefUnwindSafe for BiopMessage<'a>
impl<'a> Send for BiopMessage<'a>
impl<'a> Sync for BiopMessage<'a>
impl<'a> Unpin for BiopMessage<'a>
impl<'a> UnsafeUnpin for BiopMessage<'a>
impl<'a> UnwindSafe for BiopMessage<'a>
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