[−][src]Struct spaceapi_server::SpaceapiServer
A SpaceAPI server instance.
You can create a new instance using the new constructor method by
passing it the host, the port, the Status object and a redis connection info object.
The SpaceapiServer includes a web server through
Hyper. Simply call the serve method.
Methods
impl SpaceapiServer[src]
pub fn serve<S: ToSocketAddrs>(self, socket_addr: S) -> HttpResult<Listening>[src]
Start a HTTP server listening on self.host:self.port.
The call returns an HttpResult<Listening> object, see
http://ironframework.io/doc/hyper/server/struct.Listening.html
for more information.
Auto Trait Implementations
impl !RefUnwindSafe for SpaceapiServer
impl Send for SpaceapiServer
impl Sync for SpaceapiServer
impl Unpin for SpaceapiServer
impl !UnwindSafe for SpaceapiServer
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
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<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> PersistentInto<Arc<Mutex<T>>> for T
fn persistent_into(self) -> Arc<Mutex<T>>
impl<T> PersistentInto<Arc<RwLock<T>>> for T
fn persistent_into(self) -> Arc<RwLock<T>>
impl<T> PersistentInto<Arc<T>> for T
fn persistent_into(self) -> Arc<T>
impl<T> PersistentInto<T> for T
fn persistent_into(self) -> T
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> Typeable for T where
T: Any,
T: Any,
impl<T> UnsafeAny for T where
T: Any,
T: Any,