Type Alias tokio_xmpp::tcp::TcpComponent
source · pub type TcpComponent = Component<TcpServerConnector>;
Expand description
Component that connects over TCP
Aliased Type§
struct TcpComponent {
pub jid: Jid,
/* private fields */
}
Fields§
§jid: Jid
The component’s Jabber-Id
Implementations
source§impl<C: ServerConnector> Component<C>
impl<C: ServerConnector> Component<C>
Trait Implementations
source§impl<C: ServerConnector> Sink<Element> for Component<C>
impl<C: ServerConnector> Sink<Element> for Component<C>
source§fn start_send(self: Pin<&mut Self>, item: Element) -> Result<(), Self::Error>
fn start_send(self: Pin<&mut Self>, item: Element) -> Result<(), Self::Error>
Begin the process of sending a value to the sink.
Each call to this function must be preceded by a successful call to
poll_ready
which returned Poll::Ready(Ok(()))
. Read moresource§fn poll_ready(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
) -> Poll<Result<(), Self::Error>>
fn poll_ready( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Result<(), Self::Error>>
Attempts to prepare the
Sink
to receive a value. Read more