pub struct MCPRequest {
pub request_id: String,
pub source_peer: PeerId,
pub target_peer: PeerId,
pub message: MCPMessage,
pub timestamp: SystemTime,
pub timeout: Duration,
pub auth_token: Option<String>,
}
Expand description
MCP request with routing information
Fields§
§request_id: String
Request ID
source_peer: PeerId
Source peer
target_peer: PeerId
Target peer
message: MCPMessage
MCP message
timestamp: SystemTime
Request timestamp
timeout: Duration
Request timeout
auth_token: Option<String>
Authentication token
Trait Implementations§
Source§impl Clone for MCPRequest
impl Clone for MCPRequest
Source§fn clone(&self) -> MCPRequest
fn clone(&self) -> MCPRequest
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 MCPRequest
impl RefUnwindSafe for MCPRequest
impl Send for MCPRequest
impl Sync for MCPRequest
impl Unpin for MCPRequest
impl UnwindSafe for MCPRequest
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