pub struct Info {
pub id: Id,
pub message_id: Option<u32>,
pub session_header_type: SessionHeaderType,
pub message_source: Option<Agent>,
pub input_connection: Option<u64>,
}
Expand description
Session Info
Fields§
§id: Id
The id of the session
message_id: Option<u32>
The message nonce used to identify the message
session_header_type: SessionHeaderType
The Message Type
message_source: Option<Agent>
The identifier of the agent that sent the message
input_connection: Option<u64>
The input connection id
Implementations§
Source§impl Info
impl Info
pub fn set_message_id(&mut self, message_id: u32)
pub fn set_session_header_type( &mut self, session_header_type: SessionHeaderType, )
pub fn set_message_source(&mut self, message_source: Agent)
pub fn set_input_connection(&mut self, input_connection: u64)
pub fn get_message_id(&self) -> Option<u32>
pub fn get_session_header_type(&self) -> SessionHeaderType
pub fn get_message_source(&self) -> Option<Agent>
pub fn get_input_connection(&self) -> Option<u64>
Trait Implementations§
impl StructuralPartialEq for Info
Auto Trait Implementations§
impl Freeze for Info
impl RefUnwindSafe for Info
impl Send for Info
impl Sync for Info
impl Unpin for Info
impl UnwindSafe for Info
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request