pub struct PinBook { /* private fields */ }Expand description
The pin book of one config dir. Every change is a locked
read-modify-write (<file>.lock), so the daemon and a CLI clearing an
entry never lose each other’s writes.
Implementations§
Source§impl PinBook
impl PinBook
pub fn at(path: impl Into<PathBuf>) -> Self
Sourcepub fn for_active_profile() -> Self
pub fn for_active_profile() -> Self
The active profile’s book.
pub fn path(&self) -> &Path
Sourcepub fn load(&self) -> Vec<PinEntry>
pub fn load(&self) -> Vec<PinEntry>
Every entry this build can read (missing or unreadable file: none).
Trait Implementations§
Source§impl PinSink for PinBook
impl PinSink for PinBook
Source§fn pinned(
&self,
id: &str,
journal_id: &str,
name: Option<&str>,
cwd: Option<&Path>,
cache_keepwarm: Option<&str>,
)
fn pinned( &self, id: &str, journal_id: &str, name: Option<&str>, cwd: Option<&Path>, cache_keepwarm: Option<&str>, )
The session is pinned: add or refresh its entry (
journal_id is
current; id is the actor id, which may name an older journal).
cache_keepwarm: the session’s /keepwarm override (off/auto/<N>h).Auto Trait Implementations§
impl Freeze for PinBook
impl RefUnwindSafe for PinBook
impl Send for PinBook
impl Sync for PinBook
impl Unpin for PinBook
impl UnsafeUnpin for PinBook
impl UnwindSafe for PinBook
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<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.