pub struct Handshake {
pub data: Option<[u8; 20]>,
}
Expand description
The main authentication mechanism for components.
Fields§
§data: Option<[u8; 20]>
If Some, contains the hex-encoded SHA-1 of the concatenation of the stream id and the password, and is used to authenticate against the server.
If None, it is the successful reply from the server, the stream is now fully established and both sides can now exchange stanzas.
Implementations§
Trait Implementations§
Source§impl AsXml for Handshake
impl AsXml for Handshake
Source§impl FromXml for Handshake
impl FromXml for Handshake
Source§type Builder = HandshakeFromXmlBuilder
type Builder = HandshakeFromXmlBuilder
A builder type used to construct the element. Read more
Source§fn from_events(
name: QName,
attrs: AttrMap,
ctx: &Context<'_>,
) -> Result<Self::Builder, FromEventsError>
fn from_events( name: 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 moreSource§impl TryFrom<Element> for Handshake
impl TryFrom<Element> for Handshake
Source§type Error = FromElementError
type Error = FromElementError
The type returned in the event of a conversion error.
impl StructuralPartialEq for Handshake
Auto Trait Implementations§
impl Freeze for Handshake
impl RefUnwindSafe for Handshake
impl Send for Handshake
impl Sync for Handshake
impl Unpin for Handshake
impl UnwindSafe for Handshake
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