pub struct MCPCallContext {
pub caller_id: PeerId,
pub timestamp: SystemTime,
pub timeout: Duration,
pub auth_info: Option<MCPAuthInfo>,
pub metadata: HashMap<String, String>,
}
Expand description
MCP call context
Fields§
§caller_id: PeerId
Caller peer ID
timestamp: SystemTime
Call timestamp
timeout: Duration
Call timeout
auth_info: Option<MCPAuthInfo>
Authentication information
metadata: HashMap<String, String>
Call metadata
Trait Implementations§
Source§impl Clone for MCPCallContext
impl Clone for MCPCallContext
Source§fn clone(&self) -> MCPCallContext
fn clone(&self) -> MCPCallContext
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for MCPCallContext
impl RefUnwindSafe for MCPCallContext
impl Send for MCPCallContext
impl Sync for MCPCallContext
impl Unpin for MCPCallContext
impl UnwindSafe for MCPCallContext
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