Skip to main content

HostDaemon

Struct HostDaemon 

Source
pub struct HostDaemon { /* private fields */ }

Implementations§

Source§

impl HostDaemon

Source

pub async fn open( directory: PathBuf, host: HostConfig, control: ControlConfig, ) -> Result<Self, DaemonError>

Source

pub async fn open_with_agents( directory: PathBuf, host: HostConfig, control: ControlConfig, agents: Vec<HostStartupAgent>, ) -> Result<Self, DaemonError>

Open the catalog, start the explicitly configured Agents, then bind the control endpoint. A startup failure settles every started owner before returning; it never publishes readiness with a partially started Host.

Source

pub async fn open_configured( directory: PathBuf, host: HostConfig, control: ControlConfig, agents: Vec<HostStartupAgent>, administration: Option<DaemonAdministrationConfig>, ) -> Result<Self, DaemonError>

Explicit private policy and dynamically available profiles. Only agents are started. One union is frozen before catalog or Session creation.

Source

pub async fn open_with_mini( directory: PathBuf, host: HostConfig, control: ControlConfig, agents: Vec<HostStartupAgent>, administration: Option<DaemonAdministrationConfig>, mini_control: Option<MiniControlConfig>, ) -> Result<Self, DaemonError>

Mini is opt-in via separate private authority. It never inherits the Persistent administrative grant or durable lifecycle journal.

Source

pub fn service(&self) -> &HostService

Trusted native integrations can install explicit bindings. This handle is not an IPC grant and must not be exposed directly to model tools.

Source

pub fn administration(&self) -> Option<&DaemonAdministration>

Trusted native handle. Its private policy fixes all authority for the lifetime; IPC only wraps explicitly implemented typed operations and never accepts a grant from a caller.

Source

pub fn welcome(&self) -> &Welcome

Source

pub async fn wait_control(&mut self) -> Result<(), ServerError>

Source

pub async fn shutdown(&mut self) -> Result<(), DaemonError>

Failed native settlement deliberately retains owners, catalog ownership and the query listener for diagnosis/retry. Never force-abort backends.

Auto Trait Implementations§

§

impl !RefUnwindSafe for HostDaemon

§

impl !UnwindSafe for HostDaemon

§

impl Forget for HostDaemon

§

impl Freeze for HostDaemon
where *const ArcInner<Inner> is !null: Freeze, PhantomData<ArcInner<Inner>>: Freeze, *const u8 is !null: Freeze, PhantomData<u8>: Freeze, PhantomData<Capability>: Freeze, *const ArcInner<TreeNode> is !null: Freeze, PhantomData<ArcInner<TreeNode>>: Freeze, *const Header is !null: Freeze, PhantomData<Result<ControlExit, ServerError>>: Freeze, *const ArcInner<Inner> is !null: Freeze, PhantomData<ArcInner<Inner>>: Freeze, *const ArcInner<AdministrativeGrant> is !null: Freeze, PhantomData<ArcInner<AdministrativeGrant>>: Freeze, *const ArcInner<[ProfileRef]> is !null: Freeze, PhantomData<ArcInner<[ProfileRef]>>: Freeze,

§

impl Move for HostDaemon

§

impl Send for HostDaemon
where Arc<Inner>: Send, RawVecInner: Send, Arc<TreeNode>: Send, JoinHandle<Result<ControlExit, ServerError>>: Send, Arc<Inner>: Send, Arc<AdministrativeGrant>: Send, Arc<[ProfileRef]>: Send,

§

impl Sync for HostDaemon
where Arc<Inner>: Sync, RawVecInner: Sync, Arc<TreeNode>: Sync, JoinHandle<Result<ControlExit, ServerError>>: Sync, Arc<Inner>: Sync, Arc<AdministrativeGrant>: Sync, Arc<[ProfileRef]>: Sync,

§

impl Unpin for HostDaemon
where Arc<Inner>: Unpin, *const u8 is !null: Unpin, Arc<TreeNode>: Unpin, JoinHandle<Result<ControlExit, ServerError>>: Unpin, Arc<Inner>: Unpin, Arc<AdministrativeGrant>: Unpin, Arc<[ProfileRef]>: Unpin,

§

impl UnsafeUnpin for HostDaemon
where *const ArcInner<Inner> is !null: UnsafeUnpin, PhantomData<ArcInner<Inner>>: UnsafeUnpin, *const u8 is !null: UnsafeUnpin, PhantomData<u8>: UnsafeUnpin, PhantomData<Capability>: UnsafeUnpin, *const ArcInner<TreeNode> is !null: UnsafeUnpin, PhantomData<ArcInner<TreeNode>>: UnsafeUnpin, *const Header is !null: UnsafeUnpin, PhantomData<Result<ControlExit, ServerError>>: UnsafeUnpin, *const ArcInner<Inner> is !null: UnsafeUnpin, PhantomData<ArcInner<Inner>>: UnsafeUnpin, *const ArcInner<AdministrativeGrant> is !null: UnsafeUnpin, PhantomData<ArcInner<AdministrativeGrant>>: UnsafeUnpin, *const ArcInner<[ProfileRef]> is !null: UnsafeUnpin, PhantomData<ArcInner<[ProfileRef]>>: UnsafeUnpin,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> MaybeSendSync for T

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more