pub struct BrowserBridgeAuthorization { /* private fields */ }Expand description
Non-forgeable current-generation permission for an exact browser origin.
Implementations§
Source§impl BrowserBridgeAuthorization
impl BrowserBridgeAuthorization
Sourcepub const fn runtime_session(&self) -> [u8; 16]
pub const fn runtime_session(&self) -> [u8; 16]
Runtime session that issued the authorization.
Sourcepub const fn runtime_generation(&self) -> u64
pub const fn runtime_generation(&self) -> u64
Runtime generation that issued the authorization.
Sourcepub const fn policy_generation(&self) -> u64
pub const fn policy_generation(&self) -> u64
Policy generation that issued the authorization.
Sourcepub const fn event_sequence(&self) -> u64
pub const fn event_sequence(&self) -> u64
Authorization event sequence.
Sourcepub const fn valid_from(&self) -> u64
pub const fn valid_from(&self) -> u64
First chain-currency time at which this grant may be consumed.
Sourcepub const fn valid_until(&self) -> u64
pub const fn valid_until(&self) -> u64
Last chain-currency time at which this grant may be consumed.
Trait Implementations§
Source§impl Clone for BrowserBridgeAuthorization
impl Clone for BrowserBridgeAuthorization
Source§fn clone(&self) -> BrowserBridgeAuthorization
fn clone(&self) -> BrowserBridgeAuthorization
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BrowserBridgeAuthorization
impl Debug for BrowserBridgeAuthorization
impl Eq for BrowserBridgeAuthorization
impl StructuralPartialEq for BrowserBridgeAuthorization
Auto Trait Implementations§
impl Freeze for BrowserBridgeAuthorization
impl RefUnwindSafe for BrowserBridgeAuthorization
impl Send for BrowserBridgeAuthorization
impl Sync for BrowserBridgeAuthorization
impl Unpin for BrowserBridgeAuthorization
impl UnsafeUnpin for BrowserBridgeAuthorization
impl UnwindSafe for BrowserBridgeAuthorization
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.