pub struct ReplicaCopy {
pub folder: PathBuf,
pub replica: Option<(EntityId, EntityId)>,
}Expand description
A copy of a replica made elsewhere, in a library’s directory.
Fields§
§folder: PathBufIts folder, which is read and never written.
replica: Option<(EntityId, EntityId)>The replica it is a copy of, and its device, as its library file says, if it reads.
Implementations§
Source§impl ReplicaCopy
impl ReplicaCopy
Sourcepub fn protections(&self) -> Result<(Protection, Option<Protection>), NodeError>
pub fn protections(&self) -> Result<(Protection, Option<Protection>), NodeError>
How the copy’s keys are protected, and its secrets’, if it has any: whether a passphrase opens them, or a keystore entry, which only the computer that made it holds, unless its keyring came with the copy.
§Errors
Returns NodeError::NewerFormats if a later version of NibKeep changed the copy,
and an error if its key file does not read.
Trait Implementations§
Source§impl Clone for ReplicaCopy
impl Clone for ReplicaCopy
Source§impl Debug for ReplicaCopy
impl Debug for ReplicaCopy
impl Eq for ReplicaCopy
Source§impl PartialEq for ReplicaCopy
impl PartialEq for ReplicaCopy
impl StructuralPartialEq for ReplicaCopy
Auto Trait Implementations§
impl Forget for ReplicaCopy
impl Freeze for ReplicaCopy
impl Move for ReplicaCopy
impl RefUnwindSafe for ReplicaCopy
impl Send for ReplicaCopy
impl Sync for ReplicaCopy
impl Unpin for ReplicaCopy
impl UnsafeUnpin for ReplicaCopy
impl UnwindSafe for ReplicaCopy
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.