Struct stomp_rs::connection::Connection
source · [−]pub struct Connection { /* private fields */ }
Implementations
sourceimpl Connection
impl Connection
pub async fn new(
tcp_stream: TcpStream,
server_sender: Sender<Result<StompMessage<ServerCommand>, ConnectionError>>
) -> Self
pub async fn is_closed(&self) -> bool
pub async fn emit<T: Into<Frame<ClientCommand>>>(
&self,
frame: T
) -> Result<(), SendError<StompMessage<ClientCommand>>>
pub async fn heartbeat(
&self
) -> Result<(), SendError<StompMessage<ClientCommand>>>
pub async fn close(&self)
Auto Trait Implementations
impl !RefUnwindSafe for Connection
impl Send for Connection
impl Sync for Connection
impl Unpin for Connection
impl !UnwindSafe for Connection
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more