pub struct Transport {
pub block_size: u16,
pub sid: StreamId,
pub stanza: Stanza,
}
Expand description
Describes an In-Band Bytestream Jingle transport, see also the IBB module.
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 Transport
impl AsXml for Transport
Source§impl From<Transport> for Transport
impl From<Transport> for Transport
Source§fn from(transport: IbbTransport) -> Transport
fn from(transport: IbbTransport) -> Transport
Converts to this type from the input type.
Source§impl FromXml for Transport
impl FromXml for Transport
Source§type Builder = TransportFromXmlBuilder
type Builder = TransportFromXmlBuilder
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 Transport
impl TryFrom<Element> for Transport
Source§type Error = FromElementError
type Error = FromElementError
The type returned in the event of a conversion error.
impl StructuralPartialEq for Transport
Auto Trait Implementations§
impl Freeze for Transport
impl RefUnwindSafe for Transport
impl Send for Transport
impl Sync for Transport
impl Unpin for Transport
impl UnwindSafe for Transport
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