pub struct DirectoryMessage<'a> {
pub object_kind: [u8; 4],
pub object_key: &'a [u8],
pub object_info: &'a [u8],
pub service_context: &'a [u8],
pub bindings: Vec<Binding<'a>>,
}Expand description
BIOP::DirectoryMessage — or ServiceGatewayMessage (same wire format, kind differs). TR 101 202 §4.7.4.1/§4.7.4.4, Table 4.9.
Fields§
§object_kind: [u8; 4]Object kind ("dir\0" or "srg\0").
object_key: &'a [u8]objectKey_data.
object_info: &'a [u8]objectInfo_data (after key and kind but before serviceContextList).
service_context: &'a [u8]Raw serviceContextList bytes (count byte + context entries), preserved for round-trip.
bindings: Vec<Binding<'a>>Binding entries.
Implementations§
Source§impl<'a> DirectoryMessage<'a>
impl<'a> DirectoryMessage<'a>
Sourcepub fn is_service_gateway(&self) -> bool
pub fn is_service_gateway(&self) -> bool
True if this is a ServiceGateway object (object_kind == "srg\0").
Sourcepub fn serialized_len_total(&self) -> usize
pub fn serialized_len_total(&self) -> usize
Total serialized length including the 12-byte BIOP header.
Trait Implementations§
Source§impl<'a> Clone for DirectoryMessage<'a>
impl<'a> Clone for DirectoryMessage<'a>
Source§fn clone(&self) -> DirectoryMessage<'a>
fn clone(&self) -> DirectoryMessage<'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 DirectoryMessage<'a>
impl<'a> Debug for DirectoryMessage<'a>
impl<'a> Eq for DirectoryMessage<'a>
Source§impl<'a> PartialEq for DirectoryMessage<'a>
impl<'a> PartialEq for DirectoryMessage<'a>
Source§fn eq(&self, other: &DirectoryMessage<'a>) -> bool
fn eq(&self, other: &DirectoryMessage<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'a> Serialize for DirectoryMessage<'a>
impl<'a> Serialize for DirectoryMessage<'a>
impl<'a> StructuralPartialEq for DirectoryMessage<'a>
Auto Trait Implementations§
impl<'a> Freeze for DirectoryMessage<'a>
impl<'a> RefUnwindSafe for DirectoryMessage<'a>
impl<'a> Send for DirectoryMessage<'a>
impl<'a> Sync for DirectoryMessage<'a>
impl<'a> Unpin for DirectoryMessage<'a>
impl<'a> UnsafeUnpin for DirectoryMessage<'a>
impl<'a> UnwindSafe for DirectoryMessage<'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