Struct sentry::Envelope [−]
pub struct Envelope { /* fields omitted */ }
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
impl Envelope
impl Envelope
pub fn add_item<I>(&mut self, item: I) where
I: Into<EnvelopeItem>,
pub fn add_item<I>(&mut self, item: I) where
I: Into<EnvelopeItem>,
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;
Create an Iterator
over all the EnvelopeItem
s.
Trait Implementations
impl From<Transaction<'static>> for Envelope
impl From<Transaction<'static>> for Envelope
pub fn from(transaction: Transaction<'static>) -> Envelope
pub fn from(transaction: Transaction<'static>) -> Envelope
Performs the conversion.
impl StructuralPartialEq for Envelope
Auto Trait Implementations
impl RefUnwindSafe for Envelope
impl UnwindSafe for Envelope
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,