[][src]Struct sentry_core::Envelope

pub struct Envelope { /* fields omitted */ }

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.


impl Envelope[src]

pub fn new() -> Envelope[src]

Creates a new empty Envelope.

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;

Create an Iterator over all the EnvelopeItems.

pub fn uuid(&self) -> Option<&Uuid>[src]

Returns the Envelopes Uuid, if any.

pub fn event(&self) -> Option<&Event<'static>>[src]

Returns the Event contained in this Envelope, if any.

pub fn to_writer<W>(&self, writer: W) -> Result<(), Error> where
    W: Write

Serialize the Envelope into the given Write.

Trait Implementations

impl Clone for Envelope[src]

impl Debug for Envelope[src]

impl Default for Envelope[src]

impl From<Event<'static>> for Envelope[src]

impl From<Transaction<'static>> for Envelope[src]

impl PartialEq<Envelope> for Envelope[src]

impl StructuralPartialEq for Envelope[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,