pub struct RemotePairingRecord {
pub public_key: Vec<u8>,
pub private_key: Vec<u8>,
pub remote_unlock_host_key: Option<String>,
}Fields§
§public_key: Vec<u8>§private_key: Vec<u8>§remote_unlock_host_key: Option<String>Implementations§
Source§impl RemotePairingRecord
impl RemotePairingRecord
pub fn path_for_identifier(dir: &Path, remote_identifier: &str) -> PathBuf
pub fn save_for_identifier( &self, dir: &Path, remote_identifier: &str, ) -> Result<()>
pub fn load_for_identifier(dir: &Path, remote_identifier: &str) -> Option<Self>
pub fn list(dir: &Path) -> Vec<(String, Self)>
Trait Implementations§
Source§impl Clone for RemotePairingRecord
impl Clone for RemotePairingRecord
Source§fn clone(&self) -> RemotePairingRecord
fn clone(&self) -> RemotePairingRecord
Returns a duplicate 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 Debug for RemotePairingRecord
impl Debug for RemotePairingRecord
Source§impl<'de> Deserialize<'de> for RemotePairingRecord
impl<'de> Deserialize<'de> for RemotePairingRecord
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
Source§impl PartialEq for RemotePairingRecord
impl PartialEq for RemotePairingRecord
Source§impl Serialize for RemotePairingRecord
impl Serialize for RemotePairingRecord
impl Eq for RemotePairingRecord
impl StructuralPartialEq for RemotePairingRecord
Auto Trait Implementations§
impl Freeze for RemotePairingRecord
impl RefUnwindSafe for RemotePairingRecord
impl Send for RemotePairingRecord
impl Sync for RemotePairingRecord
impl Unpin for RemotePairingRecord
impl UnsafeUnpin for RemotePairingRecord
impl UnwindSafe for RemotePairingRecord
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.