[−][src]Struct actix_web::ws::ClientWriter
Websocket writer client
Methods
impl ClientWriter
[src]
pub fn text<T: Into<Binary>>(&mut self, text: T)
[src]
Send text frame
pub fn binary<B: Into<Binary>>(&mut self, data: B)
[src]
Send binary frame
pub fn ping(&mut self, message: &str)
[src]
Send ping frame
pub fn pong(&mut self, message: &str)
[src]
Send pong frame
pub fn close(&mut self, reason: Option<CloseReason>)
[src]
Send close frame
Trait Implementations
impl WsWriter for ClientWriter
[src]
fn send_text<T: Into<Binary>>(&mut self, text: T)
[src]
Send text frame
fn send_binary<B: Into<Binary>>(&mut self, data: B)
[src]
Send binary frame
fn send_ping(&mut self, message: &str)
[src]
Send ping frame
fn send_pong(&mut self, message: &str)
[src]
Send pong frame
fn send_close(&mut self, reason: Option<CloseReason>)
[src]
Send close frame
Auto Trait Implementations
impl !Send for ClientWriter
impl !Sync for ClientWriter
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto 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.