[−][src]Struct spirit_tokio::net::unix::DatagramListen
A Fragment
for unix datagram sockets
This is an unix domain equivalent to the UdpListen
configuration fragment. All its notes
apply here except that the base configuration fields are taken from unix::Listen
instead of
net::Listen
.
Fields
extra_cfg: ExtraCfg
Arbitrary application-specific configuration that doesn't influence the socket itself.
But it can be examined from within the handlers
.
Trait Implementations
impl<ExtraCfg: Clone> Clone for DatagramListen<ExtraCfg>
[src]
fn clone(&self) -> DatagramListen<ExtraCfg>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<ExtraCfg: Default> Default for DatagramListen<ExtraCfg>
[src]
fn default() -> DatagramListen<ExtraCfg>
[src]
impl<ExtraCfg: Eq> Eq for DatagramListen<ExtraCfg>
[src]
impl<ExtraCfg: Ord> Ord for DatagramListen<ExtraCfg>
[src]
fn cmp(&self, other: &DatagramListen<ExtraCfg>) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<ExtraCfg: PartialEq> PartialEq<DatagramListen<ExtraCfg>> for DatagramListen<ExtraCfg>
[src]
fn eq(&self, other: &DatagramListen<ExtraCfg>) -> bool
[src]
fn ne(&self, other: &DatagramListen<ExtraCfg>) -> bool
[src]
impl<ExtraCfg: PartialOrd> PartialOrd<DatagramListen<ExtraCfg>> for DatagramListen<ExtraCfg>
[src]
fn partial_cmp(&self, other: &DatagramListen<ExtraCfg>) -> Option<Ordering>
[src]
fn lt(&self, other: &DatagramListen<ExtraCfg>) -> bool
[src]
fn le(&self, other: &DatagramListen<ExtraCfg>) -> bool
[src]
fn gt(&self, other: &DatagramListen<ExtraCfg>) -> bool
[src]
fn ge(&self, other: &DatagramListen<ExtraCfg>) -> bool
[src]
impl<ExtraCfg: Debug> Debug for DatagramListen<ExtraCfg>
[src]
impl<ExtraCfg: Hash> Hash for DatagramListen<ExtraCfg>
[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> Serialize for DatagramListen<ExtraCfg> where
ExtraCfg: Serialize,
[src]
ExtraCfg: Serialize,
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de, ExtraCfg> Deserialize<'de> for DatagramListen<ExtraCfg> where
ExtraCfg: Deserialize<'de>,
[src]
ExtraCfg: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<ExtraCfg: PartialEq> Comparable<DatagramListen<ExtraCfg>> for DatagramListen<ExtraCfg>
[src]
fn compare(&self, other: &Self) -> Comparison
[src]
impl<ExtraCfg> Fragment for DatagramListen<ExtraCfg> where
ExtraCfg: Clone + Debug + PartialEq,
[src]
ExtraCfg: 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 = StdUnixDatagram
The intermediate product if the fragment supports two-stage creation of [Resource
][Fragment::Resource]s. If not, it can be set to ()
. Read more
type Resource = UnixDatagram
The actual product this [Fragment
] creates.
fn make_seed(&self, name: &str) -> Result<Self::Seed, AnyError>
[src]
fn make_resource(
&self,
seed: &mut Self::Seed,
name: &str
) -> Result<UnixDatagram, AnyError>
[src]
&self,
seed: &mut Self::Seed,
name: &str
) -> Result<UnixDatagram, 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> Stackable for DatagramListen<ExtraCfg>
[src]
impl<ExtraCfg> StructDoc for DatagramListen<ExtraCfg> where
ExtraCfg: StructDoc,
[src]
ExtraCfg: StructDoc,
fn document() -> Documentation
[src]
Auto Trait Implementations
impl<ExtraCfg> Send for DatagramListen<ExtraCfg> where
ExtraCfg: Send,
ExtraCfg: Send,
impl<ExtraCfg> Sync for DatagramListen<ExtraCfg> where
ExtraCfg: Sync,
ExtraCfg: Sync,
impl<ExtraCfg> Unpin for DatagramListen<ExtraCfg> where
ExtraCfg: Unpin,
ExtraCfg: Unpin,
impl<ExtraCfg> UnwindSafe for DatagramListen<ExtraCfg> where
ExtraCfg: UnwindSafe,
ExtraCfg: UnwindSafe,
impl<ExtraCfg> RefUnwindSafe for DatagramListen<ExtraCfg> where
ExtraCfg: RefUnwindSafe,
ExtraCfg: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> IntoResult<T> for T
[src]
impl<F> Optional for F where
F: Stackable,
[src]
F: Stackable,