pub enum IoMode {
Async,
Blocking,
}Expand description
The one transport fact a driver has to tell its consumer.
The Hypervisor.framework socketpair stalls the kqueue reactor under rapid
connect/teardown, so its driver hands back Blocking; every other
adapter hands back Async. This is where the old backend match on the
transport side stops.
Variants§
Async
Register the socket with an async reactor.
Blocking
Drive the socket with blocking I/O on a dedicated thread.
Trait Implementations§
impl Copy for IoMode
impl Eq for IoMode
impl StructuralPartialEq for IoMode
Auto Trait Implementations§
impl Freeze for IoMode
impl RefUnwindSafe for IoMode
impl Send for IoMode
impl Sync for IoMode
impl Unpin for IoMode
impl UnsafeUnpin for IoMode
impl UnwindSafe for IoMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.