pub struct GetSessionTokenRequest {
pub daemon_id: String,
}Expand description
CLI→broker request for the current composite session token
(zackees/soldr#2360, #2361 Phase 2, #2363) of one daemon. A cooperative
liveness/revocation signal, NOT authentication – see
broker/server/session_token.rs’s module docs for the full model. This
is how a client learns a token to present on a later Hello.auth_token:
the broker mints and registers a daemon’s half when it launches that
daemon (HelloRouter::launch_backend), and this RPC is the read-only
lookup a client uses afterward, deliberately kept off the FROZEN FOREVER
v1 Hello/Negotiated envelope (per #228) since it evolves with v2.
Fields§
§daemon_id: StringMatches HelloRouter’s daemon_id convention (== Hello.service_name).
Trait Implementations§
Source§impl Clone for GetSessionTokenRequest
impl Clone for GetSessionTokenRequest
Source§fn clone(&self) -> GetSessionTokenRequest
fn clone(&self) -> GetSessionTokenRequest
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 moreSource§impl Debug for GetSessionTokenRequest
impl Debug for GetSessionTokenRequest
Source§impl Default for GetSessionTokenRequest
impl Default for GetSessionTokenRequest
impl Eq for GetSessionTokenRequest
Source§impl Hash for GetSessionTokenRequest
impl Hash for GetSessionTokenRequest
Source§impl Message for GetSessionTokenRequest
impl Message for GetSessionTokenRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for GetSessionTokenRequest
impl PartialEq for GetSessionTokenRequest
impl StructuralPartialEq for GetSessionTokenRequest
Auto Trait Implementations§
impl Freeze for GetSessionTokenRequest
impl RefUnwindSafe for GetSessionTokenRequest
impl Send for GetSessionTokenRequest
impl Sync for GetSessionTokenRequest
impl Unpin for GetSessionTokenRequest
impl UnsafeUnpin for GetSessionTokenRequest
impl UnwindSafe for GetSessionTokenRequest
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