pub struct Rotation { /* private fields */ }Expand description
The handle that renews one secret’s value (super::Broker::rotation).
Debug names the secret only.
Implementations§
Source§impl Rotation
impl Rotation
Sourcepub fn renew(
&self,
value: Zeroizing<String>,
lifetime: Duration,
) -> Result<(), BrokerError>
pub fn renew( &self, value: Zeroizing<String>, lifetime: Duration, ) -> Result<(), BrokerError>
Use value for the next lifetime, and from then on never again unless
renewed. The value it replaces stays known to the leak and echo checks.
Refused, and the slot left as it was, for a value the broker cannot use.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Rotation
impl Freeze for Rotation
impl Move for Rotation
impl RefUnwindSafe for Rotation
impl Send for Rotation
impl Sync for Rotation
impl Unpin for Rotation
impl UnsafeUnpin for Rotation
impl UnwindSafe for Rotation
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