pub struct Open {
pub block_size: u16,
pub sid: StreamId,
pub stanza: Stanza,
}
Expand description
Starts an In-Band Bytestream session with the given parameters.
Fields§
§block_size: u16
Maximum size in bytes for each chunk.
sid: StreamId
The identifier to be used to create a stream.
stanza: Stanza
Which stanza type to use to exchange data.
Trait Implementations§
Source§impl AsXml for Open
impl AsXml for Open
Source§impl FromXml for Open
impl FromXml for Open
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 Open
impl TryFrom<Element> for Open
Source§type Error = FromElementError
type Error = FromElementError
The type returned in the event of a conversion error.
impl IqSetPayload for Open
impl StructuralPartialEq for Open
Auto Trait Implementations§
impl Freeze for Open
impl RefUnwindSafe for Open
impl Send for Open
impl Sync for Open
impl Unpin for Open
impl UnwindSafe for Open
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