Enum rusmpp::commands::tlvs::tlv_value::TLVValue

source ·
pub enum TLVValue {
Show 65 variants AdditionalStatusInfoText(COctetString<1, 256>), AlertOnMessageDelivery(AlertOnMsgDelivery), BillingIdentification(OctetString<0, 1024>), BroadcastAreaIdentifier(BroadcastAreaIdentifier), BroadcastAreaSuccess(BroadcastAreaSuccess), BroadcastContentTypeInfo(OctetString<0, 255>), BroadcastChannelIndicator(BroadcastChannelIndicator), BroadcastContentType(BroadcastContentType), BroadcastEndTime(OctetString<0, 17>), BroadcastErrorStatus(CommandStatus), BroadcastFrequencyInterval(BroadcastFrequencyInterval), BroadcastMessageClass(BroadcastMessageClass), BroadcastRepNum(u16), BroadcastServiceGroup(OctetString<1, 255>), CallbackNum(OctetString<4, 19>), CallbackNumAtag(OctetString<0, 65>), CallbackNumPresInd(CallbackNumPresInd), CongestionState(CongestionState), DeliveryFailureReason(DeliveryFailureReason), DestAddrNpCountry(OctetString<1, 5>), DestAddrNpInformation(OctetString<0, 10>), DestAddrNpResolution(DestAddrNpResolution), DestAddrSubunit(AddrSubunit), DestBearerType(BearerType), DestNetworkId(COctetString<7, 66>), DestNetworkType(NetworkType), DestNodeId(OctetString<6, 6>), DestSubaddress(Subaddress), DestTelematicsId(u16), DestPort(u16), DisplayTime(DisplayTime), DpfResult(DpfResult), ItsReplyType(ItsReplyType), ItsSessionInfo(ItsSessionInfo), LanguageIndicator(LanguageIndicator), MessagePayload(AnyOctetString), MessageState(MessageState), MoreMessagesToSend(MoreMessagesToSend), MsAvailabilityStatus(MsAvailabilityStatus), MsMsgWaitFacilities(MsMsgWaitFacilities), MsValidity(MsValidity), NetworkErrorCode(NetworkErrorCode), NumberOfMessages(NumberOfMessages), PayloadType(PayloadType), PrivacyIndicator(PrivacyIndicator), QosTimeToLive(u32), ReceiptedMessageId(COctetString<1, 65>), SarMsgRefNum(u16), SarSegmentSeqnum(u8), SarTotalSegments(u8), ScInterfaceVersion(InterfaceVersion), SetDpf(SetDpf), SmsSignal(u16), SourceAddrSubunit(AddrSubunit), SourceBearerType(BearerType), SourceNetworkId(COctetString<7, 66>), SourceNetworkType(NetworkType), SourceNodeId(OctetString<6, 6>), SourcePort(u16), SourceSubaddress(Subaddress), SourceTelematicsId(u16), UserMessageReference(u16), UserResponseCode(u8), UssdServiceOp(UssdServiceOp), Other { tag: TLVTag, value: AnyOctetString, },
}
Expand description

See module level documentation

Variants§

§

AdditionalStatusInfoText(COctetString<1, 256>)

§

AlertOnMessageDelivery(AlertOnMsgDelivery)

§

BillingIdentification(OctetString<0, 1024>)

§

BroadcastAreaIdentifier(BroadcastAreaIdentifier)

Identifies one or more target Broadcast Area(s) for which the status information applies.

The number of instances of this parameter will be exactly equal to the number of occurrences of the broadcast_area_identifiers parameter in the corresponding broadcast_sm.

§

BroadcastAreaSuccess(BroadcastAreaSuccess)

The success rate indicator, defined as the ratio of the number of BTSs that accepted the message and the total number of BTSs that should have accepted the message, for a particular broadcast_area_identifier.

§

BroadcastContentTypeInfo(OctetString<0, 255>)

§

BroadcastChannelIndicator(BroadcastChannelIndicator)

§

BroadcastContentType(BroadcastContentType)

Specifies the content type of the message.

§

BroadcastEndTime(OctetString<0, 17>)

Absolute time is formatted as a 16-character string (encoded as a 17-octet C-octet String) “YYMMDDhhmmsstnnp” where:

DigitsMeaning
‘YY’last two digits of the year (00-99)
‘MM’month (01-12)
‘DD’day (01-31)
‘hh’hour (00-23)
‘mm’minute (00-59)
‘ss’second (00-59)
‘t’tenths of second (0-9)
‘nn’time difference in quarter hours between local time (as expressed in the first 13 octets) and UTC (Universal Time Constant) time (00-48).
‘p’“+” Local time is in quarter hours advanced in relation to UTC time. “-” Local time is in quarter hours retarded in relation to UTC time.
§

BroadcastErrorStatus(CommandStatus)

§

BroadcastFrequencyInterval(BroadcastFrequencyInterval)

This field indicates the frequency interval at which the broadcasts of a message should be repeated.

§

BroadcastMessageClass(BroadcastMessageClass)

§

BroadcastRepNum(u16)

This field indicates the number of repeated broadcasts of a message requested by the submitter.

§

BroadcastServiceGroup(OctetString<1, 255>)

§

CallbackNum(OctetString<4, 19>)

§

CallbackNumAtag(OctetString<0, 65>)

§

CallbackNumPresInd(CallbackNumPresInd)

§

CongestionState(CongestionState)

§

DeliveryFailureReason(DeliveryFailureReason)

§

DestAddrNpCountry(OctetString<1, 5>)

§

DestAddrNpInformation(OctetString<0, 10>)

§

DestAddrNpResolution(DestAddrNpResolution)

§

DestAddrSubunit(AddrSubunit)

§

DestBearerType(BearerType)

§

DestNetworkId(COctetString<7, 66>)

§

DestNetworkType(NetworkType)

§

DestNodeId(OctetString<6, 6>)

§

DestSubaddress(Subaddress)

§

DestTelematicsId(u16)

§

DestPort(u16)

§

DisplayTime(DisplayTime)

§

DpfResult(DpfResult)

§

ItsReplyType(ItsReplyType)

§

ItsSessionInfo(ItsSessionInfo)

§

LanguageIndicator(LanguageIndicator)

§

MessagePayload(AnyOctetString)

§

MessageState(MessageState)

This field indicates the current status of the broadcast message.

§

MoreMessagesToSend(MoreMessagesToSend)

§

MsAvailabilityStatus(MsAvailabilityStatus)

§

MsMsgWaitFacilities(MsMsgWaitFacilities)

§

MsValidity(MsValidity)

§

NetworkErrorCode(NetworkErrorCode)

§

NumberOfMessages(NumberOfMessages)

§

PayloadType(PayloadType)

§

PrivacyIndicator(PrivacyIndicator)

§

QosTimeToLive(u32)

§

ReceiptedMessageId(COctetString<1, 65>)

§

SarMsgRefNum(u16)

§

SarSegmentSeqnum(u8)

§

SarTotalSegments(u8)

§

ScInterfaceVersion(InterfaceVersion)

§

SetDpf(SetDpf)

§

SmsSignal(u16)

Encoded as per [CMT-136]

§

SourceAddrSubunit(AddrSubunit)

§

SourceBearerType(BearerType)

§

SourceNetworkId(COctetString<7, 66>)

§

SourceNetworkType(NetworkType)

§

SourceNodeId(OctetString<6, 6>)

§

SourcePort(u16)

§

SourceSubaddress(Subaddress)

§

SourceTelematicsId(u16)

§

UserMessageReference(u16)

§

UserResponseCode(u8)

§

UssdServiceOp(UssdServiceOp)

§

Other

Fields

Implementations§

Trait Implementations§

source§

impl Clone for TLVValue

source§

fn clone(&self) -> TLVValue

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for TLVValue

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl DecodeWithKey for TLVValue

§

type Key = TLVTag

source§

fn decode_from<R: Read>( key: Self::Key, reader: &mut R, length: usize ) -> Result<Self, DecodeError>
where Self: Sized,

Decode a value from a reader, using a key to determine the type
source§

fn optional_length_checked_decode_from<R: Read>( key: Self::Key, reader: &mut R, length: usize ) -> Result<Option<Self>, DecodeError>
where Self: Sized,

Decode a value from a reader, using a key to determine the type Read more
source§

impl Encode for TLVValue

source§

fn encode_to<W: Write>(&self, writer: &mut W) -> Result<(), EncodeError>

Encode a value to a writer
source§

fn encode_into_vec(&self) -> Result<Vec<u8>, EncodeError>

Encode a value into a vector
source§

impl From<BroadcastRequestTLVValue> for TLVValue

source§

fn from(value: BroadcastRequestTLVValue) -> Self

Converts to this type from the input type.
source§

impl From<BroadcastResponseTLVValue> for TLVValue

source§

fn from(value: BroadcastResponseTLVValue) -> Self

Converts to this type from the input type.
source§

impl From<CancelBroadcastTLVValue> for TLVValue

source§

fn from(value: CancelBroadcastTLVValue) -> Self

Converts to this type from the input type.
source§

impl From<MessageDeliveryRequestTLVValue> for TLVValue

source§

fn from(value: MessageDeliveryRequestTLVValue) -> Self

Converts to this type from the input type.
source§

impl From<MessageDeliveryResponseTLVValue> for TLVValue

source§

fn from(value: MessageDeliveryResponseTLVValue) -> Self

Converts to this type from the input type.
source§

impl From<MessageSubmissionRequestTLVValue> for TLVValue

source§

fn from(value: MessageSubmissionRequestTLVValue) -> Self

Converts to this type from the input type.
source§

impl From<MessageSubmissionResponseTLVValue> for TLVValue

source§

fn from(value: MessageSubmissionResponseTLVValue) -> Self

Converts to this type from the input type.
source§

impl From<QueryBroadcastResponseTLVValue> for TLVValue

source§

fn from(value: QueryBroadcastResponseTLVValue) -> Self

Converts to this type from the input type.
source§

impl From<TLVValue> for TLV

source§

fn from(value: TLVValue) -> Self

Converts to this type from the input type.
source§

impl Hash for TLVValue

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Length for TLVValue

source§

fn length(&self) -> usize

Returns the length of the encoded data in bytes.
source§

impl Ord for TLVValue

source§

fn cmp(&self, other: &TLVValue) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for TLVValue

source§

fn eq(&self, other: &TLVValue) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for TLVValue

source§

fn partial_cmp(&self, other: &TLVValue) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Eq for TLVValue

source§

impl StructuralPartialEq for TLVValue

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more