pub(crate) struct RemoteCaller {
pub agent_uid: String,
pub slug: String,
pub machine: String,
pub instance_id: String,
pub install_trusted: bool,
pub verification: Verification,
pub reason: String,
}Expand description
Who asks, as the receiving machine proved it.
The identity is the slug: the key this machine pinned for that name signed the request.
agent_uid and reason are signed too, but nothing ties the uid to the key, so a handler
uses them to describe the caller and never to authorize it. instance_id is the install
whose certificate vouches for the agent’s key; it is empty when no valid certificate is held.
install_trusted says this machine also trusts that install (pinned here, or live in the
account’s directory, and not revoked): it is looked into only for an operation that changes
state, so it is false for a read, and always true inside a write’s handler.
Fields§
§agent_uid: String§slug: String§machine: StringThe requesting machine’s name.
instance_id: StringThe requesting install’s id, from the agent’s certificate; empty when none was shown.
install_trusted: bool§verification: Verification§reason: StringThe requester’s own words, to show as theirs. Never acted on, never given to an agent.
Implementations§
Trait Implementations§
Source§impl Clone for RemoteCaller
impl Clone for RemoteCaller
Source§fn clone(&self) -> RemoteCaller
fn clone(&self) -> RemoteCaller
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RemoteCaller
impl Debug for RemoteCaller
impl Eq for RemoteCaller
Source§impl PartialEq for RemoteCaller
impl PartialEq for RemoteCaller
impl StructuralPartialEq for RemoteCaller
Auto Trait Implementations§
impl Freeze for RemoteCaller
impl RefUnwindSafe for RemoteCaller
impl Send for RemoteCaller
impl Sync for RemoteCaller
impl Unpin for RemoteCaller
impl UnsafeUnpin for RemoteCaller
impl UnwindSafe for RemoteCaller
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
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.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more