Struct ntex::ws::WsSink [−][src]
pub struct WsSink(_);
Implementations
impl WsSink
[src]
impl WsSink
[src]pub fn send(
&self,
item: Message
) -> impl Future<Output = Result<(), ProtocolError>>
[src]
pub fn send(
&self,
item: Message
) -> impl Future<Output = Result<(), ProtocolError>>
[src]Endcode and send message to the peer.
pub fn on_disconnect(&self) -> OnDisconnectⓘNotable traits for OnDisconnect
impl Future for OnDisconnect type Output = ();
[src]
pub fn on_disconnect(&self) -> OnDisconnectⓘNotable traits for OnDisconnect
impl Future for OnDisconnect type Output = ();
[src]Notify when connection get disconnected
Auto Trait Implementations
impl !RefUnwindSafe for WsSink
impl !Send for WsSink
impl !Sync for WsSink
impl Unpin for WsSink
impl !UnwindSafe for WsSink
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self