[−][src]Struct xmpp_parsers::jingle::Content
Describes a session’s content, there can be multiple content in one session.
Fields
creator: Creator
Who created this content.
disposition: Disposition
How the content definition is to be interpreted by the recipient.
name: ContentId
A per-session unique identifier for this content.
senders: Senders
Who can send data for this content.
description: Option<Element>
What to send.
transport: Option<Element>
How to send it.
security: Option<Element>
With which security.
Methods
impl Content
[src]
pub fn new(creator: Creator, name: ContentId) -> Content
[src]
Create a new content.
pub fn with_disposition(self, disposition: Disposition) -> Content
[src]
Set how the content is to be interpreted by the recipient.
pub fn with_senders(self, senders: Senders) -> Content
[src]
Specify who can send data for this content.
pub fn with_description(self, description: Element) -> Content
[src]
Set the description of this content.
pub fn with_transport(self, transport: Element) -> Content
[src]
Set the transport of this content.
pub fn with_security(self, security: Element) -> Content
[src]
Set the security of this content.
Trait Implementations
impl From<Content> for Element
[src]
impl Clone for Content
[src]
fn clone(&self) -> Content
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Content
[src]
impl TryFrom<Element> for Content
[src]
Auto Trait Implementations
impl !Send for Content
impl Unpin for Content
impl !Sync for Content
impl !UnwindSafe for Content
impl !RefUnwindSafe for Content
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> IntoElements for T where
T: Into<Element>,
[src]
T: Into<Element>,
fn into_elements(self, emitter: &mut ElementEmitter)
[src]
impl<T> Same<T> for T
type Output = T
Should always be Self