pub struct ClaudePeerEndpoint(/* private fields */);Expand description
Opaque addressing string published on a discovered descriptor.
The scheme is cc-peer:v1:<pid>:<name>:<socketPath>, where <name> and
<socketPath> percent-escape % and : so the four fields stay
unambiguous. It is a projection of the registry, never an authority: the
send path re-reads the registry rather than trusting a string a client held
on to, because a pid can die and a name can move between reads.
Implementations§
Source§impl ClaudePeerEndpoint
impl ClaudePeerEndpoint
Sourcepub fn parse(value: &str) -> Result<ClaudePeerEndpoint, ClaudePeerEndpointError>
pub fn parse(value: &str) -> Result<ClaudePeerEndpoint, ClaudePeerEndpointError>
Parse an endpoint string produced by ClaudePeerSession::endpoint.
Sourcepub fn socket_path(&self) -> PathBuf
pub fn socket_path(&self) -> PathBuf
Unix socket the session binds for peer messaging.
Trait Implementations§
Source§impl Clone for ClaudePeerEndpoint
impl Clone for ClaudePeerEndpoint
Source§fn clone(&self) -> ClaudePeerEndpoint
fn clone(&self) -> ClaudePeerEndpoint
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 ClaudePeerEndpoint
impl Debug for ClaudePeerEndpoint
Source§impl<'de> Deserialize<'de> for ClaudePeerEndpoint
impl<'de> Deserialize<'de> for ClaudePeerEndpoint
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ClaudePeerEndpoint, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ClaudePeerEndpoint, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ClaudePeerEndpoint
impl Display for ClaudePeerEndpoint
impl Eq for ClaudePeerEndpoint
Source§impl PartialEq for ClaudePeerEndpoint
impl PartialEq for ClaudePeerEndpoint
Source§impl Serialize for ClaudePeerEndpoint
impl Serialize for ClaudePeerEndpoint
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ClaudePeerEndpoint
Auto Trait Implementations§
impl Freeze for ClaudePeerEndpoint
impl RefUnwindSafe for ClaudePeerEndpoint
impl Send for ClaudePeerEndpoint
impl Sync for ClaudePeerEndpoint
impl Unpin for ClaudePeerEndpoint
impl UnsafeUnpin for ClaudePeerEndpoint
impl UnwindSafe for ClaudePeerEndpoint
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.