[−][src]Enum tokio_xmpp::Packet
Anything that can be sent or received on an XMPP/XML stream
Variants
<stream:stream>
start tag
A complete stanza or nonza
Text(String)
Plain text (think whitespace keep-alive)
</stream:stream>
closing tag
Trait Implementations
impl Clone for Packet
[src]
impl Debug for Packet
[src]
impl Eq for Packet
[src]
impl PartialEq<Packet> for Packet
[src]
impl Sink<Packet> for Client
[src]
Outgoing XMPP packets
See send_stanza()
for an async fn
type Error = Error
The type of value produced by the sink when an error occurs.
pub fn start_send(
mut self: Pin<&mut Self>,
item: Packet
) -> Result<(), Self::Error>
[src]
mut self: Pin<&mut Self>,
item: Packet
) -> Result<(), Self::Error>
pub fn poll_ready(
mut self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<(), Self::Error>>
[src]
mut self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<(), Self::Error>>
pub fn poll_flush(
mut self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<(), Self::Error>>
[src]
mut self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<(), Self::Error>>
pub fn poll_close(
mut self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<(), Self::Error>>
[src]
mut self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<(), Self::Error>>
impl Sink<Packet> for Client
[src]
Outgoing XMPP packets
See send_stanza()
for an async fn
type Error = Error
The type of value produced by the sink when an error occurs.
pub fn start_send(
mut self: Pin<&mut Self>,
item: Packet
) -> Result<(), Self::Error>
[src]
mut self: Pin<&mut Self>,
item: Packet
) -> Result<(), Self::Error>
pub fn poll_ready(
mut self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<(), Self::Error>>
[src]
mut self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<(), Self::Error>>
pub fn poll_flush(
mut self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<(), Self::Error>>
[src]
mut self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<(), Self::Error>>
pub fn poll_close(
mut self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<(), Self::Error>>
[src]
mut self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<(), Self::Error>>
impl<S: AsyncRead + AsyncWrite + Unpin> Sink<Packet> for XMPPStream<S>
[src]
Proxy to self.stream
type Error = Error
The type of value produced by the sink when an error occurs.
pub fn poll_ready(
self: Pin<&mut Self>,
_ctx: &mut Context<'_>
) -> Poll<Result<(), Self::Error>>
[src]
self: Pin<&mut Self>,
_ctx: &mut Context<'_>
) -> Poll<Result<(), Self::Error>>
pub fn start_send(
#[allow(unused_mut)]
mut self: Pin<&mut Self>,
item: Packet
) -> Result<(), Self::Error>
[src]
#[allow(unused_mut)] mut self: Pin<&mut Self>,
item: Packet
) -> Result<(), Self::Error>
pub fn poll_flush(
#[allow(unused_mut)]
mut self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<(), Self::Error>>
[src]
#[allow(unused_mut)] mut self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<(), Self::Error>>
pub fn poll_close(
#[allow(unused_mut)]
mut self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<(), Self::Error>>
[src]
#[allow(unused_mut)] mut self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Result<(), Self::Error>>
impl StructuralEq for Packet
[src]
impl StructuralPartialEq for Packet
[src]
Auto Trait Implementations
impl RefUnwindSafe for Packet
[src]
impl Send for Packet
[src]
impl Sync for Packet
[src]
impl Unpin for Packet
[src]
impl UnwindSafe for Packet
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,