pub struct SharedInstanceCredentials { /* private fields */ }Implementations§
pub fn new( rpc_key: RpcAuthenticationKey, transport_identity_hash: IdentityHash, ) -> SharedInstanceCredentials
pub fn from_identity_secret(secret: &[u8; 64]) -> SharedInstanceCredentials
pub fn with_rpc_authentication_key( self, rpc_key: RpcAuthenticationKey, ) -> SharedInstanceCredentials
pub fn with_rpc_key(self, rpc_key: Vec<u8>) -> SharedInstanceCredentials
pub fn rpc_key(&self) -> &RpcAuthenticationKey
pub const fn transport_identity_hash(&self) -> IdentityHash
Trait Implementations§
Source§fn clone(&self) -> SharedInstanceCredentials
fn clone(&self) -> SharedInstanceCredentials
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 moreAuto Trait Implementations§
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