[−][src]Struct sp_yew::MsgMeta
Message meta data. Message passing protocol is build around this structure.
Fields
tx: String
Addr of message sender
rx: String
Addr of message receiver
key: String
Logic key for message processing
kind: MsgKind
Defines what kind of message it is
correlation_id: Uuid
Correlation id is needed for rpc and for message chains
route: Route
Logical message route, receiver are responsible for moving message on.
payload_size: u64
Size of payload, used for deserialization. Also useful for monitoring.
auth_token: Option<String>
Authorization token.
auth_data: Option<Value>
Authorization data.
attachments: Vec<Attachment>
Attachments to message
Implementations
impl MsgMeta
[src]
pub fn content_len(&self) -> u64
[src]
Payload plus attachments len.
pub fn attachments_len(&self) -> u64
[src]
Attachments len.
pub fn attachments_sizes(&self) -> Vec<u64>
[src]
Attachments sizes.
pub fn display(&self) -> String
[src]
Short display of message meta data
pub fn key_part(&self, index: usize) -> Result<&str, String>
[src]
Get key part, index is zero based, . is used as a separator.
pub fn match_key_part(&self, index: usize, value: &str) -> Result<bool, String>
[src]
Compares key part with passed value, index is zero based, . is used as a separator.
pub fn tx_part(&self, index: usize) -> Result<&str, String>
[src]
Get tx part, index is zero based, . is used as a separator.
pub fn match_tx_part(&self, index: usize, value: &str) -> Result<bool, String>
[src]
Compares tx part with passed value, index is zero based, . is used as a separator.
pub fn source_cmp_addr(&self) -> Option<&str>
[src]
pub fn source_cmp_part(&self, index: usize) -> Result<&str, String>
[src]
Get source cmp part, index is zero based, . is used as a separator.
pub fn match_source_cmp_part(
&self,
index: usize,
value: &str
) -> Result<bool, String>
[src]
&self,
index: usize,
value: &str
) -> Result<bool, String>
Compares source cmp part with passed value, index is zero based, . is used as a separator.
pub fn source_cmp_part_before_last(&self) -> Result<&str, String>
[src]
Get source cmp part before last one, . is used as a separator.
pub fn source_svc_addr(&self) -> Option<String>
[src]
pub fn client_cmp_addr(&self) -> Option<String>
[src]
pub fn client_svc_addr(&self) -> Option<String>
[src]
Trait Implementations
impl Clone for MsgMeta
[src]
impl Debug for MsgMeta
[src]
impl<'de> Deserialize<'de> for MsgMeta
[src]
fn deserialize<__D>(
__deserializer: __D
) -> Result<MsgMeta, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<MsgMeta, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl Serialize for MsgMeta
[src]
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Auto Trait Implementations
impl RefUnwindSafe for MsgMeta
impl Send for MsgMeta
impl Sync for MsgMeta
impl Unpin for MsgMeta
impl UnwindSafe for MsgMeta
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CloneAny for T where
T: Clone + Any,
T: Clone + Any,
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,