pub enum RelaySyncState {
Synced,
Pending,
Unsynced,
}Expand description
Relay-side registration state of a group, from
OfflineProtocol::group_relay_sync_state. Point-in-time: transitions
are surfaced as GroupRelaySyncChanged events.
Variants§
Synced
The relay positively acknowledged the group’s registration on the current connection — relay-dependent server commands for the group (invite links, server-side fan-out) can be issued.
Pending
A registration was sent and its acknowledgment is outstanding.
The SDK re-sends on a timer and gives up after a bounded number of
attempts (GroupRelaySyncChanged { reason: "ack_timeout" }).
Unsynced
No registration is in flight — the group is unknown locally, the Internet transport is down, relay grouping is disabled, or a prior attempt was answered with an error / timed out.
Trait Implementations§
Source§impl Clone for RelaySyncState
impl Clone for RelaySyncState
Source§fn clone(&self) -> RelaySyncState
fn clone(&self) -> RelaySyncState
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 moreimpl Copy for RelaySyncState
Source§impl Debug for RelaySyncState
impl Debug for RelaySyncState
impl Eq for RelaySyncState
Source§impl PartialEq for RelaySyncState
impl PartialEq for RelaySyncState
impl StructuralPartialEq for RelaySyncState
Auto Trait Implementations§
impl Freeze for RelaySyncState
impl RefUnwindSafe for RelaySyncState
impl Send for RelaySyncState
impl Sync for RelaySyncState
impl Unpin for RelaySyncState
impl UnsafeUnpin for RelaySyncState
impl UnwindSafe for RelaySyncState
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<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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