[−][src]Struct sentry_types::protocol::v7::Envelope
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
[src]
pub fn new() -> Envelope
[src]
Creates a new empty Envelope.
pub fn add_item<I>(&mut self, item: I) where
I: Into<EnvelopeItem>,
[src]
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;
[src]
Notable traits for EnvelopeItemIter<'s>
impl<'s> Iterator for EnvelopeItemIter<'s> type Item = &'s EnvelopeItem;
Create an Iterator
over all the EnvelopeItem
s.
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, mut writer: W) -> Result<()> where
W: Write,
[src]
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]
pub fn from(transaction: Transaction<'static>) -> Self
[src]
impl PartialEq<Envelope> for Envelope
[src]
impl StructuralPartialEq for Envelope
[src]
Auto Trait Implementations
impl RefUnwindSafe for Envelope
[src]
impl Send for Envelope
[src]
impl Sync for Envelope
[src]
impl Unpin for Envelope
[src]
impl UnwindSafe for Envelope
[src]
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,
pub 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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,