pub struct StartupReadiness { /* private fields */ }Implementations§
Source§impl StartupReadiness
impl StartupReadiness
pub fn new_pending() -> Self
pub fn ready(user_id: u64, attribution: Option<i32>) -> Self
pub fn snapshot(&self) -> IdentitySnapshot
pub fn subscribe(&self) -> Receiver<IdentitySnapshot>
pub async fn await_init_identity( &self, ) -> Result<IdentitySnapshot, StartupState>
pub async fn await_init_identity_or_cancel<F>( &self, cancelled: F, ) -> Result<Option<IdentitySnapshot>, StartupState>
pub async fn await_pending_init_connects_drained(&self)
pub fn pending_init_connect_count(&self) -> usize
pub fn transition( &self, expected_generation: u64, event: StartupEvent, ) -> Result<IdentitySnapshot, StartupTransitionError>
pub fn allows_proto(&self, proto_id: u32) -> bool
pub const fn is_prelogin_proto(proto_id: u32) -> bool
Trait Implementations§
Source§impl Clone for StartupReadiness
impl Clone for StartupReadiness
Source§fn clone(&self) -> StartupReadiness
fn clone(&self) -> StartupReadiness
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for StartupReadiness
impl !UnwindSafe for StartupReadiness
impl Freeze for StartupReadiness
impl Send for StartupReadiness
impl Sync for StartupReadiness
impl Unpin for StartupReadiness
impl UnsafeUnpin for StartupReadiness
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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>
Converts
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>
Converts
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§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.