pub enum FallibleStreamElement {
Ok(XmppStreamElement),
Err(StreamElementError),
}Expand description
Wrapper type to catch parse errors of XmppStreamElement items.
Variants§
Implementations§
Source§impl FallibleStreamElement
impl FallibleStreamElement
Sourcepub fn into_read_error(self) -> Result<XmppStreamElement, ReadError>
pub fn into_read_error(self) -> Result<XmppStreamElement, ReadError>
Convert the contained error condition (if any) to a ReadError.
This can be used in places where you do not care to handle the various error conditions separately.
Trait Implementations§
Source§impl Debug for FallibleStreamElement
impl Debug for FallibleStreamElement
Source§impl FromXml for FallibleStreamElement
impl FromXml for FallibleStreamElement
Source§type Builder = FallibleStreamElementBuilder
type Builder = FallibleStreamElementBuilder
A builder type used to construct the element. Read more
Source§fn from_events(
qname: QName,
attrs: AttrMap,
ctx: &Context<'_>,
) -> Result<Self::Builder, FromEventsError>
fn from_events( qname: QName, attrs: AttrMap, ctx: &Context<'_>, ) -> Result<Self::Builder, FromEventsError>
Attempt to initiate the streamed construction of this struct from XML. Read more
Source§fn xml_name_matcher() -> XmlNameMatcher<'static>
fn xml_name_matcher() -> XmlNameMatcher<'static>
Return a predicate which determines if
Self may be parsed from
a given XML element. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for FallibleStreamElement
impl !UnwindSafe for FallibleStreamElement
impl Freeze for FallibleStreamElement
impl Send for FallibleStreamElement
impl Sync for FallibleStreamElement
impl Unpin for FallibleStreamElement
impl UnsafeUnpin for FallibleStreamElement
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more