pub struct ServiceConfig<LC, SC> {
pub listener: LC,
pub server: SC,
}Expand description
Configuration structure for a service, combining listener and server configs.
§Type Parameters
LC: The type of the listener configuration.SC: The type of the server configuration.
Fields§
§listener: LCConfiguration for the service listener.
server: SCConfiguration for the server component of the service.
Trait Implementations§
Source§impl<LC: Clone, SC: Clone> Clone for ServiceConfig<LC, SC>
impl<LC: Clone, SC: Clone> Clone for ServiceConfig<LC, SC>
Source§fn clone(&self) -> ServiceConfig<LC, SC>
fn clone(&self) -> ServiceConfig<LC, SC>
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<'de, LC, SC> Deserialize<'de> for ServiceConfig<LC, SC>where
LC: Deserialize<'de>,
SC: Deserialize<'de>,
impl<'de, LC, SC> Deserialize<'de> for ServiceConfig<LC, SC>where
LC: Deserialize<'de>,
SC: Deserialize<'de>,
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<LC, SC> Freeze for ServiceConfig<LC, SC>
impl<LC, SC> RefUnwindSafe for ServiceConfig<LC, SC>where
LC: RefUnwindSafe,
SC: RefUnwindSafe,
impl<LC, SC> Send for ServiceConfig<LC, SC>
impl<LC, SC> Sync for ServiceConfig<LC, SC>
impl<LC, SC> Unpin for ServiceConfig<LC, SC>
impl<LC, SC> UnwindSafe for ServiceConfig<LC, SC>where
LC: UnwindSafe,
SC: UnwindSafe,
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