pub struct GuardRef { /* private fields */ }Expand description
One guard of one composed ceremony, named from the system above it.
Implementations§
Source§impl GuardRef
impl GuardRef
pub const fn new(ceremony: SystemCeremonyId, guard_name: GuardName) -> Self
pub const fn ceremony(&self) -> &SystemCeremonyId
pub const fn guard_name(&self) -> &GuardName
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GuardRef
impl<'de> Deserialize<'de> for GuardRef
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
impl Eq for GuardRef
Source§impl Ord for GuardRef
impl Ord for GuardRef
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for GuardRef
impl PartialOrd for GuardRef
impl StructuralPartialEq for GuardRef
Auto Trait Implementations§
impl Freeze for GuardRef
impl RefUnwindSafe for GuardRef
impl Send for GuardRef
impl Sync for GuardRef
impl Unpin for GuardRef
impl UnsafeUnpin for GuardRef
impl UnwindSafe for GuardRef
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