pub struct Admin {
pub operator: Arc<Operator>,
pub hosts: Arc<Hosts>,
pub dir: PathBuf,
pub base_url: String,
}Expand description
What the admin commands act on: the router’s own Operator and
Hosts, never a second instance, since the cached public_url and the
setup token live in that one.
Fields§
§operator: Arc<Operator>§hosts: Arc<Hosts>§dir: PathBufThe data directory, where a fresh setup link is written.
base_url: StringThe setup link’s base (kernel spec §3.1).
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Admin
impl !UnwindSafe for Admin
impl Freeze for Admin
impl Send for Admin
impl Sync for Admin
impl Unpin for Admin
impl UnsafeUnpin for Admin
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