[−]Struct sentry::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
pub fn new() -> Envelope
Creates a new empty Envelope.
pub fn add_item<I>(&mut self, item: I) where
I: Into<EnvelopeItem>,
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;
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>
Returns the Envelopes Uuid, if any.
pub fn event(&self) -> Option<&Event<'static>>
Returns the Event
contained in this Envelope, if any.
pub fn to_writer<W>(&self, writer: W) -> Result<(), Error> where
W: Write,
W: Write,
Serialize the Envelope into the given Write
.
Trait Implementations
impl Clone for Envelope
pub fn clone(&self) -> Envelope
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Envelope
impl Default for Envelope
impl From<Event<'static>> for Envelope
impl From<Transaction<'static>> for Envelope
pub fn from(transaction: Transaction<'static>) -> Envelope
impl PartialEq<Envelope> for Envelope
impl StructuralPartialEq for Envelope
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> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
T: Send + Sync + UnwindSafe + ?Sized,
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,