pub enum SameHostState {
Pending,
Bound {
transport: Arc<dyn Any + Send + Sync>,
role: Role,
},
Failed {
reason: &'static str,
},
}Expand description
State of a same-host pair in the tracker.
Variants§
Pending
Match detected, SHM transport not yet set up.
Bound
SHM transport active. transport is an opaque Arc<dyn Any> so
that this module does not depend directly on transport-shm. The
runtime hook downcasts to the concrete transport instance.
Fields
Failed
SHM setup failed; UDP fallback active.
Trait Implementations§
Source§impl Clone for SameHostState
impl Clone for SameHostState
Source§fn clone(&self) -> SameHostState
fn clone(&self) -> SameHostState
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 SameHostState
impl !UnwindSafe for SameHostState
impl Freeze for SameHostState
impl Send for SameHostState
impl Sync for SameHostState
impl Unpin for SameHostState
impl UnsafeUnpin for SameHostState
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