pub struct PausedChannel<Tx, Rx> { /* private fields */ }Expand description
A restored channel that may be registered with mio but cannot perform I/O.
Keeping the active Channel private prevents the receiving process from
reading or writing a shared socket before the upgrade handoff commits.
Implementations§
Source§impl<Tx, Rx> PausedChannel<Tx, Rx>
impl<Tx, Rx> PausedChannel<Tx, Rx>
Sourcepub fn register(
&mut self,
registry: &Registry,
token: Token,
interests: Interest,
) -> Result<()>
pub fn register( &mut self, registry: &Registry, token: Token, interests: Interest, ) -> Result<()>
Validate mio registration during the prepared handoff phase.
Registration changes neither the socket’s blocking mode nor its byte
streams. No readiness is handled until PausedChannel::resume
returns the active channel after commit.
Auto Trait Implementations§
impl<Tx, Rx> !Freeze for PausedChannel<Tx, Rx>
impl<Tx, Rx> RefUnwindSafe for PausedChannel<Tx, Rx>where
Channel<Tx, Rx>: RefUnwindSafe,
impl<Tx, Rx> Send for PausedChannel<Tx, Rx>
impl<Tx, Rx> Sync for PausedChannel<Tx, Rx>
impl<Tx, Rx> Unpin for PausedChannel<Tx, Rx>
impl<Tx, Rx> UnsafeUnpin for PausedChannel<Tx, Rx>where
Channel<Tx, Rx>: UnsafeUnpin,
impl<Tx, Rx> UnwindSafe for PausedChannel<Tx, Rx>where
Channel<Tx, Rx>: UnwindSafe,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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