pub struct Udh {
pub ies: Vec<Ie>,
}Expand description
User data header (23.040 §9.2.3.24).
Fields§
§ies: Vec<Ie>Implementations§
Source§impl Udh
impl Udh
Sourcepub fn encode(&self) -> Result<Vec<u8>, PduError>
pub fn encode(&self) -> Result<Vec<u8>, PduError>
UDHL followed by the IEs. Invalid("UDH length") when an IE holds more than 255
octets or the header more than 255 (neither length fits its octet; a UDH that
fits a TPDU is at most 139 octets anyway).
Sourcepub fn concat(&self) -> Option<Concat>
pub fn concat(&self) -> Option<Concat>
Concatenation info; None without the IE or when total/seq are inconsistent.
pub fn ports(&self) -> Option<Ports>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Udh
impl<'de> Deserialize<'de> for Udh
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Udh
impl StructuralPartialEq for Udh
Auto Trait Implementations§
impl Forget for Udh
impl Freeze for Udh
impl RefUnwindSafe for Udh
impl Send for Udh
impl Sync for Udh
impl Unpin for Udh
impl UnsafeUnpin for Udh
impl UnwindSafe for Udh
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