pub struct WebSocketSession { /* private fields */ }Expand description
Re-exported public API.
Public Caelix type WebSocketSession.
Implementations§
Source§impl WebSocketSession
impl WebSocketSession
Sourcepub async fn send_text(&self, text: impl Into<String>) -> Result<()>
pub async fn send_text(&self, text: impl Into<String>) -> Result<()>
Runs the send_text public API operation.
Sourcepub async fn send_binary(&self, data: impl Into<Bytes>) -> Result<()>
pub async fn send_binary(&self, data: impl Into<Bytes>) -> Result<()>
Runs the send_binary public API operation.
Sourcepub async fn ping(&self, data: impl Into<Bytes>) -> Result<()>
pub async fn ping(&self, data: impl Into<Bytes>) -> Result<()>
Runs the ping public API operation.
Trait Implementations§
Source§impl Clone for WebSocketSession
impl Clone for WebSocketSession
Source§fn clone(&self) -> WebSocketSession
fn clone(&self) -> WebSocketSession
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for WebSocketSession
impl !UnwindSafe for WebSocketSession
impl Freeze for WebSocketSession
impl Send for WebSocketSession
impl Sync for WebSocketSession
impl Unpin for WebSocketSession
impl UnsafeUnpin for WebSocketSession
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