Struct sentry_core::Envelope
source · [−]pub struct Envelope { /* private fields */ }
Expand description
A Sentry Envelope.
An Envelope is the data format that Sentry uses for Ingestion. It can contain multiple Items, some of which are related, such as Events, and Event Attachments. Other Items, such as Sessions are independent.
See the documentation on Envelopes for more details.
Implementations
Add a new Envelope Item.
pub fn items(&self) -> EnvelopeItemIter<'_>ⓘNotable traits for EnvelopeItemIter<'s>impl<'s> Iterator for EnvelopeItemIter<'s> type Item = &'s EnvelopeItem;
pub fn items(&self) -> EnvelopeItemIter<'_>ⓘNotable traits for EnvelopeItemIter<'s>impl<'s> Iterator for EnvelopeItemIter<'s> type Item = &'s EnvelopeItem;
impl<'s> Iterator for EnvelopeItemIter<'s> type Item = &'s EnvelopeItem;
Create an Iterator
over all the EnvelopeItem
s.
Returns the Event
contained in this Envelope, if any.
Filters the Envelope’s EnvelopeItem
s based on a predicate,
and returns a new Envelope containing only the filtered items.
Retains the EnvelopeItem
s for which the predicate returns true
.
Additionally, EnvelopeItem::Attachment
s are only kept if the Envelope
contains an EnvelopeItem::Event
or EnvelopeItem::Transaction
.
None
is returned if no items remain in the Envelope after filtering.
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for Envelope
impl UnwindSafe for Envelope
Blanket Implementations
Mutably borrows from an owned value. Read more