Struct blunt::Server [−][src]
pub struct Server {
pub sessions: WebSocketSessions,
// some fields omitted
}Fields
sessions: WebSocketSessionsImplementations
impl Server[src]
impl Server[src]pub async fn bind(&mut self, addrs: impl ToSocketAddrs) -> Result<()>[src]
pub async fn trigger_on_open(&mut self, session: &WebSocketSession)[src]
Notify Handler that a new web socket session was opened
pub async fn recv(&mut self, session_id: Uuid, message: WebSocketMessage)[src]
Receive message from the web socket connection
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Server
impl !RefUnwindSafe for Serverimpl !UnwindSafe for Server
impl !UnwindSafe for ServerBlanket Implementations
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T> Same<T> for T
impl<T> Same<T> for Ttype Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>, pub fn vzip(self) -> V
impl<T> WithSubscriber for T[src]
impl<T> WithSubscriber for T[src]pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>, [src]
S: Into<Dispatch>,