Struct xmpp_parsers::jingle_ibb::Transport
source · 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 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
§type Builder = FromEventsViaElement<Transport>
type Builder = FromEventsViaElement<Transport>
A builder type used to construct the element. Read more
source§fn from_events(
qname: QName,
attrs: AttrMap,
) -> Result<Self::Builder, FromEventsError>
fn from_events( qname: QName, attrs: AttrMap, ) -> Result<Self::Builder, FromEventsError>
Attempt to initiate the streamed construction of this struct from XML. Read more
source§impl IntoXml for Transport
impl IntoXml for Transport
§type EventIter = IntoEventsViaElement
type EventIter = IntoEventsViaElement
The iterator type. Read more
source§fn into_event_iter(self) -> Result<Self::EventIter, Error>
fn into_event_iter(self) -> Result<Self::EventIter, Error>
Return an iterator which emits the contents of the struct or enum as
serialisable
rxml::Event
items.source§impl PartialEq for Transport
impl PartialEq for Transport
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