[−][src]Struct fleetspeak_proto::common::Message
Fields
message_id: Vec<u8>
A hash based on origin and origin_message_id. It is set by the fleetspeak system on message intake and may be used for deduplication.
source: Option<Address>
The source of the messages. Required.
source_message_id: Vec<u8>
An sequence of bytes set by the source in a way to uniquely identify the message among all messages with the same origin.
destination: Option<Address>
The destination of the message. Required.
message_type: String
The type of message. This field is mostly opaque to the Fleetspeak system, but can be used for some statistics gathering. It is recommended that each service define a static collection of short readable message types and dispatch according to this when processing messages. e.g. "ResourceUsage", "StdOutputData".
creation_time: Option<Timestamp>
Set when the message enters the FS system.
data: Option<Any>
The data associated with this request, accepted types are determined by the service and may depend on message_type. Not typically stored after the message is processed.
validation_info: Option<ValidationInfo>
Additional validation information, set by on the server by the (optional) authorizer component based on WrappedContactData.validators, etc.
result: Option<MessageResult>
The result of processing the message. Set once processing has finished.
priority: i32
background: bool
A background message does not count as activity when deciding how fast to poll the server. This flag should be set on messages which are unlikely to trigger additional activity.
annotations: Option<Annotations>
Optional debugging information provided by the originator of the message. Fleetspeak stores this information along with the message for later retrieval, but doesn't really do anything else with it.
Methods
impl Message
[src]
pub fn priority(&self) -> Priority
[src]
Returns the enum value of priority
, or the default if the field is set to an invalid enum value.
pub fn set_priority(&mut self, value: Priority)
[src]
Sets priority
to the provided enum value.
Trait Implementations
impl Clone for Message
[src]
impl Debug for Message
[src]
impl Default for Message
[src]
impl Message for Message
[src]
fn encode_raw<B>(&self, buf: &mut B) where
B: BufMut,
[src]
B: BufMut,
fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
[src]
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
fn encoded_len(&self) -> usize
[src]
fn clear(&mut self)
[src]
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
[src]
B: BufMut,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
[src]
B: BufMut,
fn decode<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
[src]
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
[src]
B: Buf,
Self: Default,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
[src]
B: Buf,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
[src]
B: Buf,
impl PartialEq<Message> for Message
[src]
impl StructuralPartialEq for Message
[src]
Auto Trait Implementations
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> 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>,