[][src]Struct ws_actix_web::WSClient

pub struct WSClient<T>(pub SinkWrite<Message, SplitSink<Framed<T, Codec>, Message>>)
where
    T: AsyncRead + AsyncWrite
;

Methods

impl<T: 'static> WSClient<T> where
    T: AsyncRead + AsyncWrite
[src]

pub fn hb(&self, ctx: &mut Context<Self>)[src]

Trait Implementations

impl<T: 'static> Actor for WSClient<T> where
    T: AsyncRead + AsyncWrite
[src]

type Context = Context<Self>

Actor execution context type

impl<T: 'static> Handler<ClientCommand> for WSClient<T> where
    T: AsyncRead + AsyncWrite
[src]

Handle stdin commands

type Result = ()

The type of value that this handler will return.

impl<T: 'static> StreamHandler<Result<Frame, ProtocolError>> for WSClient<T> where
    T: AsyncRead + AsyncWrite
[src]

Handle server websocket messages

impl<T: 'static> WriteHandler<ProtocolError> for WSClient<T> where
    T: AsyncRead + AsyncWrite
[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for WSClient<T>

impl<T> !Send for WSClient<T>

impl<T> !Sync for WSClient<T>

impl<T> Unpin for WSClient<T>

impl<T> !UnwindSafe for WSClient<T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,