pub enum PeerOrigin {
Stdio,
Management,
}Expand description
Which transport a connection arrived on, and therefore its trust domain. The
framework only carries this two-domain model and hands it to the Handler;
the embedder assigns meaning, and is the layer that must refuse a management
peer anything reserved for the in-process caller:
Stdio— an in-process / same-trust caller (agentd’s own driving harness over the process stdio).Management— a peer that dialed a listener (unix socket / vsock), i.e. the management trust domain.
Variants§
Stdio
The process’s own stdio / an in-process caller (the driving harness).
Management
A peer on a listener (unix / vsock) — the management trust domain.
Implementations§
Trait Implementations§
Source§impl Clone for PeerOrigin
impl Clone for PeerOrigin
Source§fn clone(&self) -> PeerOrigin
fn clone(&self) -> PeerOrigin
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PeerOrigin
Source§impl Debug for PeerOrigin
impl Debug for PeerOrigin
impl Eq for PeerOrigin
Source§impl PartialEq for PeerOrigin
impl PartialEq for PeerOrigin
impl StructuralPartialEq for PeerOrigin
Auto Trait Implementations§
impl Freeze for PeerOrigin
impl RefUnwindSafe for PeerOrigin
impl Send for PeerOrigin
impl Sync for PeerOrigin
impl Unpin for PeerOrigin
impl UnsafeUnpin for PeerOrigin
impl UnwindSafe for PeerOrigin
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