pub struct ProtocolId<T: RoleT>(/* private fields */);Implementations§
Source§impl<T: RoleT> ProtocolId<T>
impl<T: RoleT> ProtocolId<T>
Source§impl<R: RoleT> ProtocolId<R>
impl<R: RoleT> ProtocolId<R>
pub const fn is_initiator(self) -> bool
pub const fn is_responder(self) -> bool
pub const fn opposite(self) -> ProtocolId<R::Opposite>
pub const fn erase(self) -> ProtocolId<Erased>
pub const fn for_role(self, role: Role) -> ProtocolId<Erased>
pub const fn role(self) -> Role
Source§impl ProtocolId<Initiator>
impl ProtocolId<Initiator>
pub const fn responder(self) -> ProtocolId<Responder>
Source§impl ProtocolId<Responder>
impl ProtocolId<Responder>
pub const fn initiator(self) -> ProtocolId<Initiator>
Trait Implementations§
Source§impl<R: RoleT> Clone for ProtocolId<R>
impl<R: RoleT> Clone for ProtocolId<R>
Source§impl<T: RoleT> Debug for ProtocolId<T>
impl<T: RoleT> Debug for ProtocolId<T>
Source§impl<'de, T: RoleT> Deserialize<'de> for ProtocolId<T>
impl<'de, T: RoleT> Deserialize<'de> for ProtocolId<T>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T: RoleT> Display for ProtocolId<T>
impl<T: RoleT> Display for ProtocolId<T>
Source§impl<T: RoleT> Hash for ProtocolId<T>
impl<T: RoleT> Hash for ProtocolId<T>
Source§impl<T: RoleT> Ord for ProtocolId<T>
impl<T: RoleT> Ord for ProtocolId<T>
Source§impl<T: RoleT> PartialEq for ProtocolId<T>
impl<T: RoleT> PartialEq for ProtocolId<T>
Source§impl<T: RoleT> PartialOrd for ProtocolId<T>
impl<T: RoleT> PartialOrd for ProtocolId<T>
Source§impl<T: RoleT> Serialize for ProtocolId<T>
impl<T: RoleT> Serialize for ProtocolId<T>
impl<T: RoleT> Copy for ProtocolId<T>
impl<T: RoleT> Eq for ProtocolId<T>
Auto Trait Implementations§
impl<T> Freeze for ProtocolId<T>
impl<T> RefUnwindSafe for ProtocolId<T>where
T: RefUnwindSafe,
impl<T> Send for ProtocolId<T>
impl<T> Sync for ProtocolId<T>
impl<T> Unpin for ProtocolId<T>where
T: Unpin,
impl<T> UnsafeUnpin for ProtocolId<T>
impl<T> UnwindSafe for ProtocolId<T>where
T: UnwindSafe,
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> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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