Struct tuna_web::TunaServer [−][src]
pub struct TunaServer { /* fields omitted */ }
Expand description
The server to tuna web. Will deal with both serving of HTTP content and the websockets used for management.
Implementations
impl TunaServer
[src]
impl TunaServer
[src]pub fn new(port: u16) -> Result<Self>
[src]
pub fn new(port: u16) -> Result<Self>
[src]Create a new Tuna Web server. Will serve HTTP on the specified port, and
websocket traffic on the subsequent port (port + 1
).
pub fn work_http(&mut self)
[src]
pub fn work_http(&mut self)
[src]Update the HTTP server, draining the request queue before returning.
pub fn work_websocket(&mut self)
[src]
pub fn work_websocket(&mut self)
[src]Update the websocket server, draining the connection queue before returning.
Auto Trait Implementations
impl !RefUnwindSafe for TunaServer
impl Send for TunaServer
impl Sync for TunaServer
impl Unpin for TunaServer
impl !UnwindSafe for TunaServer
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> Same<T> for T
impl<T> Same<T> for T
type Output = T
type 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>,