pub enum RecordedLocation<P> {
None,
SignedOut(P),
Connected(P),
}Expand description
Whether a storage location is recorded on this device, and whether this device holds credentials for it (§19.1), with the location’s provider. The database keeps the provider as the name sync gives it.
Variants§
None
No location is recorded.
SignedOut(P)
A location is recorded, but this device holds no credentials for it.
Connected(P)
A location is recorded, and this device holds its credentials.
Implementations§
Source§impl<P> RecordedLocation<P>
impl<P> RecordedLocation<P>
Sourcepub fn is_connected(&self) -> bool
pub fn is_connected(&self) -> bool
A location is recorded and this device holds its credentials.
Sourcepub fn map<Q>(self, name: impl FnOnce(P) -> Q) -> RecordedLocation<Q>
pub fn map<Q>(self, name: impl FnOnce(P) -> Q) -> RecordedLocation<Q>
The same location, with its provider as name gives it.
Trait Implementations§
Source§impl<P: Clone> Clone for RecordedLocation<P>
impl<P: Clone> Clone for RecordedLocation<P>
Source§fn clone(&self) -> RecordedLocation<P>
fn clone(&self) -> RecordedLocation<P>
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<P: Debug> Debug for RecordedLocation<P>
impl<P: Debug> Debug for RecordedLocation<P>
Source§impl<P: PartialEq> PartialEq for RecordedLocation<P>
impl<P: PartialEq> PartialEq for RecordedLocation<P>
impl<P: Copy> Copy for RecordedLocation<P>
impl<P: Eq> Eq for RecordedLocation<P>
impl<P> StructuralPartialEq for RecordedLocation<P>
Auto Trait Implementations§
impl<P> Freeze for RecordedLocation<P>where
P: Freeze,
impl<P> RefUnwindSafe for RecordedLocation<P>where
P: RefUnwindSafe,
impl<P> Send for RecordedLocation<P>where
P: Send,
impl<P> Sync for RecordedLocation<P>where
P: Sync,
impl<P> Unpin for RecordedLocation<P>where
P: Unpin,
impl<P> UnsafeUnpin for RecordedLocation<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for RecordedLocation<P>where
P: UnwindSafe,
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.