fn ctx
	(
		&self                                 ,
		sid    : impl Into<Option<ServiceID>> ,
		cid    : impl Into<Option<ConnID>>    ,
		context: impl AsRef<str>              ,
	)

		-> PeerErrCtx
	{
		PeerErrCtx
		{
			peer_id  : self.id                      .into() ,
			peer_name: self.name.clone()            .into() ,
			context  : context.as_ref().to_string() .into() ,
			sid      : sid                          .into() ,
			cid      : cid                          .into() ,
		}
	}
// generate an error context for convenience.
//
generate an error context for convenience.
generate an error context for convenience .
fn ctx
	(
		&self                                 ,
		sid    : impl Into<Option<ServiceID>> ,
		cid    : impl Into<Option<ConnID>>    ,
		context: impl AsRef<str>              ,
	)
		-> PeerErrCtx
	{
		PeerErrCtx
		{
			peer_id  : self.id                      .into() ,
			peer_name: self.name.clone()            .into() ,
			context  : context.as_ref().to_string() .into() ,
			sid      : sid                          .into() ,
			cid      : cid                          .into() ,
		}
	}
fn ctx ( & self , sid : impl Into < Option < ServiceID > > , cid : impl Into < Option < ConnID > > , context : impl AsRef < str > , ) -> PeerErrCtx { PeerErrCtx { peer_id : self . id . into ( ) , peer_name : self . name . clone ( ) . into ( ) , context : context . as_ref ( ) . to_string ( ) . into ( ) , sid : sid . into ( ) , cid : cid . into ( ) , } }
generate an error context for convenience.
generate an error context for convenience .
&self
sid
impl Into<Option<ServiceID>>
cid
impl Into<Option<ConnID>>
context
impl AsRef<str>
&self
sid
impl Into<Option<ServiceID>>
cid
impl Into<Option<ConnID>>
context
impl AsRef<str>