Struct libstrophe::OwnedStreamError
source · pub struct OwnedStreamError {
pub typ: xmpp_error_type_t,
pub text: Option<String>,
pub stanza: Mutex<Stanza>,
}
Expand description
Owned version of StreamError
. stanza
is guarded by Mutex to make the error type Sync
.
Fields§
§typ: xmpp_error_type_t
§text: Option<String>
§stanza: Mutex<Stanza>
Trait Implementations§
source§impl Clone for OwnedStreamError
impl Clone for OwnedStreamError
source§impl Debug for OwnedStreamError
impl Debug for OwnedStreamError
source§impl Display for OwnedStreamError
impl Display for OwnedStreamError
source§impl Error for OwnedStreamError
impl Error for OwnedStreamError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<&StreamError<'_, '_>> for OwnedStreamError
impl From<&StreamError<'_, '_>> for OwnedStreamError
source§fn from(s: &StreamError<'_, '_>) -> Self
fn from(s: &StreamError<'_, '_>) -> Self
Converts to this type from the input type.
source§impl From<StreamError<'_, '_>> for OwnedStreamError
impl From<StreamError<'_, '_>> for OwnedStreamError
source§fn from(s: StreamError<'_, '_>) -> Self
fn from(s: StreamError<'_, '_>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for OwnedStreamError
impl Send for OwnedStreamError
impl Sync for OwnedStreamError
impl Unpin for OwnedStreamError
impl UnwindSafe for OwnedStreamError
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