pub struct ServerReady {
pub event: String,
pub addr: String,
pub port: u16,
pub scheme: String,
pub pid: u32,
pub version: String,
}Fields§
§event: StringAlways READY_EVENT.
addr: Stringhost:port as actually bound – never the requested value, which
may have been port 0.
port: u16The bound port, split out so a caller does not have to parse
addr (IPv6 literals make that its own small mistake).
scheme: Stringhttp or https, so a client can build a base URL without
guessing whether TLS was configured.
pid: u32§version: StringImplementations§
Trait Implementations§
Source§impl Clone for ServerReady
impl Clone for ServerReady
Source§fn clone(&self) -> ServerReady
fn clone(&self) -> ServerReady
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ServerReady
impl Debug for ServerReady
Source§impl<'de> Deserialize<'de> for ServerReady
impl<'de> Deserialize<'de> for ServerReady
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
impl Eq for ServerReady
Source§impl PartialEq for ServerReady
impl PartialEq for ServerReady
Source§impl Serialize for ServerReady
impl Serialize for ServerReady
impl StructuralPartialEq for ServerReady
Auto Trait Implementations§
impl Freeze for ServerReady
impl RefUnwindSafe for ServerReady
impl Send for ServerReady
impl Sync for ServerReady
impl Unpin for ServerReady
impl UnsafeUnpin for ServerReady
impl UnwindSafe for ServerReady
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more