pub struct LinkHost { /* private fields */ }Expand description
This liminal as a machine Lys knows (ACCESS-002 R1): the identity its links are keyed from, its own pass’s link rights, and the machine keys Lys recorded for the holders that may open links to it.
The recorded keys are the operator’s mirror of Lys’s directory
([auth.lys.machine] machines) until liminal reads the directory itself;
a holder with no recorded key cannot open a link, and an offered key that
is not the recorded one is refused by name.
Implementations§
Source§impl LinkHost
impl LinkHost
Sourcepub const fn new(
local: LocalMachine,
rights: Box<dyn LinkRights>,
recorded: BTreeMap<String, MachineIdentity>,
) -> Self
pub const fn new( local: LocalMachine, rights: Box<dyn LinkRights>, recorded: BTreeMap<String, MachineIdentity>, ) -> Self
This machine, its own link rights, and the recorded keys by holder.
Sourcepub const fn local(&self) -> &LocalMachine
pub const fn local(&self) -> &LocalMachine
The identity this machine’s links are keyed from.
Sourcepub fn rights(&self) -> &dyn LinkRights
pub fn rights(&self) -> &dyn LinkRights
This machine’s own pass answering its end of every crossing.
Sourcepub fn recorded_machine(&self, holder: &str) -> Option<MachineIdentity>
pub fn recorded_machine(&self, holder: &str) -> Option<MachineIdentity>
The machine key Lys recorded for holder, if one is recorded.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for LinkHost
impl !UnwindSafe for LinkHost
impl Freeze for LinkHost
impl Send for LinkHost
impl Sync for LinkHost
impl Unpin for LinkHost
impl UnsafeUnpin for LinkHost
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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