Struct actix_web::ws::ClientWriter
source · pub struct ClientWriter { /* private fields */ }Expand description
Websocket writer client
Implementations
sourceimpl ClientWriter
impl ClientWriter
sourcepub fn close(&mut self, reason: Option<CloseReason>)
pub fn close(&mut self, reason: Option<CloseReason>)
Send close frame
Trait Implementations
sourceimpl WsWriter for ClientWriter
impl WsWriter for ClientWriter
sourcefn send_binary<B: Into<Binary>>(&mut self, data: B)
fn send_binary<B: Into<Binary>>(&mut self, data: B)
Send binary frame
sourcefn send_close(&mut self, reason: Option<CloseReason>)
fn send_close(&mut self, reason: Option<CloseReason>)
Send close frame
Auto Trait Implementations
impl !RefUnwindSafe for ClientWriter
impl !Send for ClientWriter
impl !Sync for ClientWriter
impl Unpin for ClientWriter
impl !UnwindSafe for ClientWriter
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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