Enum ironoxide::InitAndRotationCheck [−][src]
pub enum InitAndRotationCheck<T> { NoRotationNeeded(T), RotationNeeded(T, PrivateKeyRotationCheckResult), }
Expand description
Result of calling initialize_check_rotation
Variants
Initialization succeeded, and no requests for private key rotations were present
RotationNeeded(T, PrivateKeyRotationCheckResult)
Initialization succeeded, but some keys should be rotated
Implementations
Caller asked to check rotation on initialize, but doesn’t want to handle the result. Consider using initialize instead.
pub fn new_rotation_needed(
io: T,
rotations_needed: EitherOrBoth<UserId, Vec1<GroupId>>
) -> InitAndRotationCheck<T>
pub fn new_rotation_needed(
io: T,
rotations_needed: EitherOrBoth<UserId, Vec1<GroupId>>
) -> InitAndRotationCheck<T>
Convenience constructor to make an InitAndRotationCheck::RotationNeeded from an IronOxide
and an EitherOrBoth<UserId, Vec1
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<T> RefUnwindSafe for InitAndRotationCheck<T> where
T: RefUnwindSafe,
impl<T> Send for InitAndRotationCheck<T> where
T: Send,
impl<T> Sync for InitAndRotationCheck<T> where
T: Sync,
impl<T> Unpin for InitAndRotationCheck<T> where
T: Unpin,
impl<T> UnwindSafe for InitAndRotationCheck<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V