struct ConnectionLife {
me: u64,
watching: Watching,
dictate: Streaming,
}Expand description
What a connection leaves behind when it ends.
Held by the supervisor rather than inside the connection future. A wedged connection is dropped, not returned from, and a teardown written after the future’s last await is teardown a reap never runs.
Fields§
§me: u64This connection’s own number: the stamp that names which take is this connection’s, on the commands that start and stop one and on the updates that come back.
watching: Watching§dictate: StreamingThe seats this connection claimed takes for, and whether it is recording the read-aloud set. Here rather than inside the future because the teardown that closes every one of them runs after it. A refused start adds its seat too - the dispatch cannot tell a registration from a refusal, both answering through the stream - and only a take that ENDS takes it back out; a refusal leaves it, because the take it answers never ran.
Implementations§
Auto Trait Implementations§
impl Freeze for ConnectionLife
impl RefUnwindSafe for ConnectionLife
impl Send for ConnectionLife
impl Sync for ConnectionLife
impl Unpin for ConnectionLife
impl UnsafeUnpin for ConnectionLife
impl UnwindSafe for ConnectionLife
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more