pub struct ReconnectAttemptPermit { /* private fields */ }Expand description
Sealed, non-cloneable authority for one real connection attempt.
ⓘ
use liminal_protocol::client::ReconnectAttemptPermit;
fn clone_is_forbidden(permit: ReconnectAttemptPermit) {
let _duplicate = permit.clone();
}ⓘ
use liminal_protocol::client::{
ClientParticipantAggregate, ReconnectAttemptPermit, redeem_attempt,
};
fn moved_reuse_is_forbidden(
aggregate: ClientParticipantAggregate,
permit: ReconnectAttemptPermit,
) {
let _started = redeem_attempt(aggregate, permit);
let _reuse = permit;
}Implementations§
Source§impl ReconnectAttemptPermit
impl ReconnectAttemptPermit
Sourcepub const fn event(&self) -> ReconnectFreshEvent
pub const fn event(&self) -> ReconnectFreshEvent
Returns the fresh event that authorized this attempt.
Trait Implementations§
Source§impl Debug for ReconnectAttemptPermit
impl Debug for ReconnectAttemptPermit
impl Eq for ReconnectAttemptPermit
Source§impl PartialEq for ReconnectAttemptPermit
impl PartialEq for ReconnectAttemptPermit
impl StructuralPartialEq for ReconnectAttemptPermit
Auto Trait Implementations§
impl Freeze for ReconnectAttemptPermit
impl RefUnwindSafe for ReconnectAttemptPermit
impl Send for ReconnectAttemptPermit
impl Sync for ReconnectAttemptPermit
impl Unpin for ReconnectAttemptPermit
impl UnsafeUnpin for ReconnectAttemptPermit
impl UnwindSafe for ReconnectAttemptPermit
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