pub struct ChannelSessionRoute { /* private fields */ }Expand description
Deterministic mapping from a remote conversation to an agent session name.
Implementations§
Source§impl ChannelSessionRoute
impl ChannelSessionRoute
pub fn new( agent: impl Into<String>, prefix: impl Into<String>, ) -> Result<Self, ChannelError>
pub fn agent(&self) -> &str
Sourcepub fn session_for(&self, target: &MessageTarget) -> String
pub fn session_for(&self, target: &MessageTarget) -> String
Returns a stable, filesystem-safe session name for one conversation thread.
Sourcepub fn request_id_for(&self, message: &InboundMessage) -> String
pub fn request_id_for(&self, message: &InboundMessage) -> String
Returns a deterministic idempotency key for one inbound platform message.
Trait Implementations§
Source§impl Clone for ChannelSessionRoute
impl Clone for ChannelSessionRoute
Source§impl Debug for ChannelSessionRoute
impl Debug for ChannelSessionRoute
impl Eq for ChannelSessionRoute
Source§impl PartialEq for ChannelSessionRoute
impl PartialEq for ChannelSessionRoute
impl StructuralPartialEq for ChannelSessionRoute
Auto Trait Implementations§
impl Freeze for ChannelSessionRoute
impl RefUnwindSafe for ChannelSessionRoute
impl Send for ChannelSessionRoute
impl Sync for ChannelSessionRoute
impl Unpin for ChannelSessionRoute
impl UnsafeUnpin for ChannelSessionRoute
impl UnwindSafe for ChannelSessionRoute
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