Fields§
§host: [u8; 4]
§port: u16
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Server
impl<'de> Deserialize<'de> for Server
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<Server> for Server
impl PartialEq<Server> for Server
source§impl ServerOperators for Server
impl ServerOperators for Server
source§impl ServerSpec for Server
impl ServerSpec for Server
source§fn address(&self) -> SocketAddr
fn address(&self) -> SocketAddr
Fetch an instance of a std::net::SocketAddr
source§fn builder(&self) -> Builder<AddrIncoming>
fn builder(&self) -> Builder<AddrIncoming>
Creates a new builder instance with the address created from the given port
fn serve<'life0, 'async_trait>(
&'life0 self,
client: Router
) -> Pin<Box<dyn Future<Output = AsyncResult> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
impl Eq for Server
impl StructuralEq for Server
impl StructuralPartialEq for Server
Auto Trait Implementations§
impl RefUnwindSafe for Server
impl Send for Server
impl Sync for Server
impl Unpin for Server
impl UnwindSafe for Server
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.