pub enum UMessageType {
UMESSAGE_TYPE_UNSPECIFIED = 0,
UMESSAGE_TYPE_PUBLISH = 1,
UMESSAGE_TYPE_REQUEST = 2,
UMESSAGE_TYPE_RESPONSE = 3,
UMESSAGE_TYPE_NOTIFICATION = 4,
}
Variants§
UMESSAGE_TYPE_UNSPECIFIED = 0
UMESSAGE_TYPE_PUBLISH = 1
UMESSAGE_TYPE_REQUEST = 2
UMESSAGE_TYPE_RESPONSE = 3
UMESSAGE_TYPE_NOTIFICATION = 4
Implementations§
Source§impl UMessageType
impl UMessageType
Sourcepub fn to_cloudevent_type(&self) -> String
pub fn to_cloudevent_type(&self) -> String
Gets this message type’s CloudEvent type name.
§Returns
The value to use for the type property when mapping to a CloudEvent.
Sourcepub fn try_from_cloudevent_type<S: Into<String>>(
value: S,
) -> Result<Self, UAttributesError>
pub fn try_from_cloudevent_type<S: Into<String>>( value: S, ) -> Result<Self, UAttributesError>
Gets the message type for a CloudEvent type name.
§Errors
Returns a UAttributesError::ParsingError
if the given name does not match
any of the supported message types.
Trait Implementations§
Source§impl Clone for UMessageType
impl Clone for UMessageType
Source§fn clone(&self) -> UMessageType
fn clone(&self) -> UMessageType
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for UMessageType
impl Debug for UMessageType
Source§impl Default for UMessageType
impl Default for UMessageType
Source§impl Enum for UMessageType
impl Enum for UMessageType
Source§const VALUES: &'static [UMessageType]
const VALUES: &'static [UMessageType]
All enum values for enum type.
Source§impl EnumFull for UMessageType
impl EnumFull for UMessageType
Source§fn enum_descriptor() -> EnumDescriptor
fn enum_descriptor() -> EnumDescriptor
Get enum descriptor by type.
Source§fn descriptor(&self) -> EnumValueDescriptor
fn descriptor(&self) -> EnumValueDescriptor
Get enum value descriptor.
Source§impl Hash for UMessageType
impl Hash for UMessageType
Source§impl PartialEq for UMessageType
impl PartialEq for UMessageType
impl Copy for UMessageType
impl Eq for UMessageType
impl StructuralPartialEq for UMessageType
Auto Trait Implementations§
impl Freeze for UMessageType
impl RefUnwindSafe for UMessageType
impl Send for UMessageType
impl Sync for UMessageType
impl Unpin for UMessageType
impl UnwindSafe for UMessageType
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