pub struct SocketReconnectRegistry { /* private fields */ }Expand description
Registry of reconnectable socket endpoints owned by one live node.
Implementations§
Source§impl SocketReconnectRegistry
impl SocketReconnectRegistry
Sourcepub fn scope<T>(&self, f: impl FnOnce() -> T) -> T
pub fn scope<T>(&self, f: impl FnOnce() -> T) -> T
Makes this registry available while live client factories construct their clients.
Sourcepub fn get(&self, client_id: ClientId, endpoint: Ustr) -> SocketReconnectLookup
pub fn get(&self, client_id: ClientId, endpoint: Ustr) -> SocketReconnectLookup
Resolves one logical socket endpoint.
Sourcepub fn handle(
&self,
client_id: ClientId,
endpoint: Ustr,
) -> Option<SocketReconnectHandle>
pub fn handle( &self, client_id: ClientId, endpoint: Ustr, ) -> Option<SocketReconnectHandle>
Returns the reconnect handle when exactly one owner registered endpoint.
Trait Implementations§
Source§impl Debug for SocketReconnectRegistry
impl Debug for SocketReconnectRegistry
Source§impl Default for SocketReconnectRegistry
impl Default for SocketReconnectRegistry
Source§fn default() -> SocketReconnectRegistry
fn default() -> SocketReconnectRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for SocketReconnectRegistry
impl !UnwindSafe for SocketReconnectRegistry
impl Freeze for SocketReconnectRegistry
impl Send for SocketReconnectRegistry
impl Sync for SocketReconnectRegistry
impl Unpin for SocketReconnectRegistry
impl UnsafeUnpin for SocketReconnectRegistry
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
§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> ⓘ
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