[−][src]Struct spirit_tokio::net::unix::UnixListen
A listener for unix domain stream sockets.
This is the unix-domain equivalent of TcpListen
. All notes about it apply here with the
sole difference that the fields added by it are from unix::Listen
instead of
net::Listen
.
Fields
extra_cfg: ExtraCfg
Arbitrary additional application-specific configuration that doesn't influence the socket.
But it can be looked into by the handlers
.
Trait Implementations
impl<ExtraCfg: Clone, UnixStreamConfig: Clone> Clone for UnixListen<ExtraCfg, UnixStreamConfig>
[src]
fn clone(&self) -> UnixListen<ExtraCfg, UnixStreamConfig>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<ExtraCfg, UnixStreamConfig> Comparable<UnixListen<ExtraCfg, UnixStreamConfig>> for UnixListen<ExtraCfg, UnixStreamConfig> where
ExtraCfg: PartialEq,
UnixStreamConfig: PartialEq,
[src]
ExtraCfg: PartialEq,
UnixStreamConfig: PartialEq,
fn compare(&self, other: &Self) -> Comparison
[src]
impl<ExtraCfg: Debug, UnixStreamConfig: Debug> Debug for UnixListen<ExtraCfg, UnixStreamConfig>
[src]
impl<ExtraCfg: Default, UnixStreamConfig: Default> Default for UnixListen<ExtraCfg, UnixStreamConfig>
[src]
fn default() -> UnixListen<ExtraCfg, UnixStreamConfig>
[src]
impl<'de, ExtraCfg, UnixStreamConfig> Deserialize<'de> for UnixListen<ExtraCfg, UnixStreamConfig> where
ExtraCfg: Deserialize<'de>,
UnixStreamConfig: Deserialize<'de>,
[src]
ExtraCfg: Deserialize<'de>,
UnixStreamConfig: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<ExtraCfg: Eq, UnixStreamConfig: Eq> Eq for UnixListen<ExtraCfg, UnixStreamConfig>
[src]
impl<ExtraCfg, UnixStreamConfig> Fragment for UnixListen<ExtraCfg, UnixStreamConfig> where
ExtraCfg: Clone + Debug + PartialEq,
UnixStreamConfig: Clone + Debug + PartialEq,
[src]
ExtraCfg: Clone + Debug + PartialEq,
UnixStreamConfig: Clone + Debug + PartialEq,
type Driver = CacheSimilar<Self>
The default driver to be used by the fragment. Read more
type Installer = ()
The default installer to be used unless a transformation or the user doesn't provide one. Read more
type Seed = StdUnixListener
The intermediate product if the fragment supports two-stage creation of
Resource
s. If not, it can be set to ()
. Read more
type Resource = ConfiguredListener<UnixListener, UnixStreamConfig>
The actual product this Fragment
creates.
fn make_seed(&self, name: &str) -> Result<StdUnixListener, AnyError>
[src]
fn make_resource(
&self,
seed: &mut Self::Seed,
name: &str
) -> Result<Self::Resource, AnyError>
[src]
&self,
seed: &mut Self::Seed,
name: &str
) -> Result<Self::Resource, AnyError>
const RUN_BEFORE_CONFIG: bool
[src]
fn create(
&self,
name: &'static str
) -> Result<Self::Resource, Box<dyn Error + 'static + Sync + Send>>
[src]
&self,
name: &'static str
) -> Result<Self::Resource, Box<dyn Error + 'static + Sync + Send>>
fn init<B>(
builder: B,
&'static str
) -> Result<B, Box<dyn Error + 'static + Sync + Send>> where
B: Extensible<Ok = B>,
<B as Extensible>::Config: DeserializeOwned,
<B as Extensible>::Config: Send,
<B as Extensible>::Config: Sync,
<B as Extensible>::Config: 'static,
<B as Extensible>::Opts: StructOpt,
<B as Extensible>::Opts: Send,
<B as Extensible>::Opts: Sync,
<B as Extensible>::Opts: 'static,
[src]
builder: B,
&'static str
) -> Result<B, Box<dyn Error + 'static + Sync + Send>> where
B: Extensible<Ok = B>,
<B as Extensible>::Config: DeserializeOwned,
<B as Extensible>::Config: Send,
<B as Extensible>::Config: Sync,
<B as Extensible>::Config: 'static,
<B as Extensible>::Opts: StructOpt,
<B as Extensible>::Opts: Send,
<B as Extensible>::Opts: Sync,
<B as Extensible>::Opts: 'static,
impl<ExtraCfg: Hash, UnixStreamConfig: Hash> Hash for UnixListen<ExtraCfg, UnixStreamConfig>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<ExtraCfg: Ord, UnixStreamConfig: Ord> Ord for UnixListen<ExtraCfg, UnixStreamConfig>
[src]
fn cmp(&self, other: &UnixListen<ExtraCfg, UnixStreamConfig>) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<ExtraCfg: PartialEq, UnixStreamConfig: PartialEq> PartialEq<UnixListen<ExtraCfg, UnixStreamConfig>> for UnixListen<ExtraCfg, UnixStreamConfig>
[src]
fn eq(&self, other: &UnixListen<ExtraCfg, UnixStreamConfig>) -> bool
[src]
fn ne(&self, other: &UnixListen<ExtraCfg, UnixStreamConfig>) -> bool
[src]
impl<ExtraCfg: PartialOrd, UnixStreamConfig: PartialOrd> PartialOrd<UnixListen<ExtraCfg, UnixStreamConfig>> for UnixListen<ExtraCfg, UnixStreamConfig>
[src]
fn partial_cmp(
&self,
other: &UnixListen<ExtraCfg, UnixStreamConfig>
) -> Option<Ordering>
[src]
&self,
other: &UnixListen<ExtraCfg, UnixStreamConfig>
) -> Option<Ordering>
fn lt(&self, other: &UnixListen<ExtraCfg, UnixStreamConfig>) -> bool
[src]
fn le(&self, other: &UnixListen<ExtraCfg, UnixStreamConfig>) -> bool
[src]
fn gt(&self, other: &UnixListen<ExtraCfg, UnixStreamConfig>) -> bool
[src]
fn ge(&self, other: &UnixListen<ExtraCfg, UnixStreamConfig>) -> bool
[src]
impl<ExtraCfg, UnixStreamConfig> Serialize for UnixListen<ExtraCfg, UnixStreamConfig> where
ExtraCfg: Serialize,
UnixStreamConfig: Serialize,
[src]
ExtraCfg: Serialize,
UnixStreamConfig: Serialize,
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<ExtraCfg, UnixStreamConfig> Stackable for UnixListen<ExtraCfg, UnixStreamConfig>
[src]
impl<ExtraCfg, UnixStreamConfig> StructDoc for UnixListen<ExtraCfg, UnixStreamConfig> where
ExtraCfg: StructDoc,
UnixStreamConfig: StructDoc,
[src]
ExtraCfg: StructDoc,
UnixStreamConfig: StructDoc,
fn document() -> Documentation
[src]
impl<ExtraCfg, UnixStreamConfig> StructuralEq for UnixListen<ExtraCfg, UnixStreamConfig>
[src]
impl<ExtraCfg, UnixStreamConfig> StructuralPartialEq for UnixListen<ExtraCfg, UnixStreamConfig>
[src]
Auto Trait Implementations
impl<ExtraCfg, UnixStreamConfig> RefUnwindSafe for UnixListen<ExtraCfg, UnixStreamConfig> where
ExtraCfg: RefUnwindSafe,
UnixStreamConfig: RefUnwindSafe,
ExtraCfg: RefUnwindSafe,
UnixStreamConfig: RefUnwindSafe,
impl<ExtraCfg, UnixStreamConfig> Send for UnixListen<ExtraCfg, UnixStreamConfig> where
ExtraCfg: Send,
UnixStreamConfig: Send,
ExtraCfg: Send,
UnixStreamConfig: Send,
impl<ExtraCfg, UnixStreamConfig> Sync for UnixListen<ExtraCfg, UnixStreamConfig> where
ExtraCfg: Sync,
UnixStreamConfig: Sync,
ExtraCfg: Sync,
UnixStreamConfig: Sync,
impl<ExtraCfg, UnixStreamConfig> Unpin for UnixListen<ExtraCfg, UnixStreamConfig> where
ExtraCfg: Unpin,
UnixStreamConfig: Unpin,
ExtraCfg: Unpin,
UnixStreamConfig: Unpin,
impl<ExtraCfg, UnixStreamConfig> UnwindSafe for UnixListen<ExtraCfg, UnixStreamConfig> where
ExtraCfg: UnwindSafe,
UnixStreamConfig: UnwindSafe,
ExtraCfg: UnwindSafe,
UnixStreamConfig: UnwindSafe,
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> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoResult<T> for T
[src]
impl<F> Optional for F where
F: Stackable,
[src]
F: Stackable,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,