Struct relay_auth::RegisterState
source · pub struct RegisterState { /* private fields */ }
Expand description
A state structure containing relevant information from RegisterRequest
.
This structure is used to carry over information between the downstream register request and register response. In addition to identifying information, it contains a random bit to avoid replay attacks.
Implementations§
source§impl RegisterState
impl RegisterState
sourcepub fn timestamp(&self) -> UnixTimestamp
pub fn timestamp(&self) -> UnixTimestamp
Returns the timestamp at which the challenge was created.
sourcepub fn public_key(&self) -> &PublicKey
pub fn public_key(&self) -> &PublicKey
Returns the public key of the requesting downstream Relay.
Trait Implementations§
source§impl Clone for RegisterState
impl Clone for RegisterState
source§fn clone(&self) -> RegisterState
fn clone(&self) -> RegisterState
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'de> Deserialize<'de> for RegisterState
impl<'de> Deserialize<'de> for RegisterState
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
Auto Trait Implementations§
impl Freeze for RegisterState
impl RefUnwindSafe for RegisterState
impl Send for RegisterState
impl Sync for RegisterState
impl Unpin for RegisterState
impl UnwindSafe for RegisterState
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