[−][src]Struct rask_server::server::Socket
Fields
ws: Sender
group: Sender<GroupMessage>
groups: Arc<Mutex<HashMap<u32, Group>>>
ip: String
id: u32
Implementations
impl Socket
[src]
fn handle_token(&mut self, response: TokenResponse) -> Result<(), ServerError>
[src]
Trait Implementations
impl Handler for Socket
[src]
fn on_open(&mut self, handshake: Handshake) -> Result<()>
[src]
fn on_message(&mut self, msg: Message) -> Result<()>
[src]
fn on_close(&mut self, _: CloseCode, _: &str)
[src]
fn on_request(&mut self, req: &Request) -> Result<Response>
[src]
fn on_shutdown(&mut self)
fn on_error(&mut self, err: Error)
fn on_response(&mut self, res: &Response) -> Result<(), Error>
fn on_timeout(&mut self, event: Token) -> Result<(), Error>
fn on_new_timeout(&mut self, Token, Timeout) -> Result<(), Error>
fn on_frame(&mut self, frame: Frame) -> Result<Option<Frame>, Error>
fn on_send_frame(&mut self, frame: Frame) -> Result<Option<Frame>, Error>
fn build_request(&mut self, url: &Url) -> Result<Request, Error>
fn upgrade_ssl_client(
&mut self,
stream: TcpStream,
url: &Url
) -> Result<SslStream<TcpStream>, Error>
&mut self,
stream: TcpStream,
url: &Url
) -> Result<SslStream<TcpStream>, Error>
fn upgrade_ssl_server(
&mut self,
TcpStream
) -> Result<SslStream<TcpStream>, Error>
&mut self,
TcpStream
) -> Result<SslStream<TcpStream>, Error>
Auto Trait Implementations
impl !RefUnwindSafe for Socket
impl Send for Socket
impl !Sync for Socket
impl Unpin for Socket
impl !UnwindSafe for Socket
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
fn get_type_id(&self) -> TypeId
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<S, T> Collide<[T]> for S where
T: Collide<S>,
[src]
T: Collide<S>,
impl<T> Event for T where
T: Send + Sync + 'static,
T: Send + Sync + 'static,
impl<T> From<T> for T
[src]
impl<F> Handler for F where
F: Fn(Message) -> Result<(), Error>,
F: Fn(Message) -> Result<(), Error>,
fn on_message(&mut self, msg: Message) -> Result<(), Error>
fn on_shutdown(&mut self)
fn on_open(&mut self, shake: Handshake) -> Result<(), Error>
fn on_close(&mut self, code: CloseCode, reason: &str)
fn on_error(&mut self, err: Error)
fn on_request(&mut self, req: &Request) -> Result<Response, Error>
fn on_response(&mut self, res: &Response) -> Result<(), Error>
fn on_timeout(&mut self, event: Token) -> Result<(), Error>
fn on_new_timeout(&mut self, Token, Timeout) -> Result<(), Error>
fn on_frame(&mut self, frame: Frame) -> Result<Option<Frame>, Error>
fn on_send_frame(&mut self, frame: Frame) -> Result<Option<Frame>, Error>
fn build_request(&mut self, url: &Url) -> Result<Request, Error>
fn upgrade_ssl_client(
&mut self,
stream: TcpStream,
url: &Url
) -> Result<SslStream<TcpStream>, Error>
&mut self,
stream: TcpStream,
url: &Url
) -> Result<SslStream<TcpStream>, Error>
fn upgrade_ssl_server(
&mut self,
TcpStream
) -> Result<SslStream<TcpStream>, Error>
&mut self,
TcpStream
) -> Result<SslStream<TcpStream>, Error>
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
const ALIGN: usize
type Init = T
The type for initializers.
unsafe fn init(init: <T as Pointable>::Init) -> usize
unsafe fn deref<'a>(ptr: usize) -> &'a T
unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
unsafe fn drop(ptr: usize)
impl<T> Resource for T where
T: Any + Send + Sync,
T: Any + Send + Sync,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> 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, U> TryInto<U> 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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,