pub struct SgListener {
pub name: String,
pub ip: Option<IpAddr>,
pub port: u16,
pub protocol: SgProtocolConfig,
pub hostname: Option<String>,
}Expand description
Listener embodies the concept of a logical endpoint where a Gateway accepts network connections.
Fields§
§name: StringName is the name of the Listener. This name MUST be unique within a Gateway.
ip: Option<IpAddr>Ip bound to the Listener. Default is 0.0.0.0
port: u16Port is the network port. Multiple listeners may use the same port, subject to the Listener compatibility rules.
protocol: SgProtocolConfigProtocol specifies the network protocol this listener expects to receive.
hostname: Option<String>HostName is used to define the host on which the listener accepts requests.
Trait Implementations§
Source§impl Clone for SgListener
impl Clone for SgListener
Source§fn clone(&self) -> SgListener
fn clone(&self) -> SgListener
Returns a duplicate of the value. Read more
1.0.0 · 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 SgListener
impl Debug for SgListener
Source§impl Default for SgListener
impl Default for SgListener
Source§fn default() -> SgListener
fn default() -> SgListener
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SgListenerwhere
SgListener: Default,
impl<'de> Deserialize<'de> for SgListenerwhere
SgListener: Default,
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
Auto Trait Implementations§
impl Freeze for SgListener
impl RefUnwindSafe for SgListener
impl Send for SgListener
impl Sync for SgListener
impl Unpin for SgListener
impl UnwindSafe for SgListener
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