pub struct AgentToClient;Expand description
An agent’s connection to a client.
Implementations§
Source§impl AgentToClient
impl AgentToClient
Sourcepub fn builder() -> JrConnectionBuilder<NullHandler<AgentToClient>>
pub fn builder() -> JrConnectionBuilder<NullHandler<AgentToClient>>
Create a connection builder for an agent talking to a client.
Trait Implementations§
Source§impl Clone for AgentToClient
impl Clone for AgentToClient
Source§fn clone(&self) -> AgentToClient
fn clone(&self) -> AgentToClient
Returns a duplicate of the value. Read more
1.0.0 · 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 AgentToClient
impl Debug for AgentToClient
Source§impl Default for AgentToClient
impl Default for AgentToClient
Source§fn default() -> AgentToClient
fn default() -> AgentToClient
Returns the “default value” for a type. Read more
Source§impl HasEndpoint<Client> for AgentToClient
impl HasEndpoint<Client> for AgentToClient
Source§fn remote_style(_end: Client) -> RemoteRoleStyle
fn remote_style(_end: Client) -> RemoteRoleStyle
Returns the remote role style for sending to this endpoint.
Source§impl Hash for AgentToClient
impl Hash for AgentToClient
Source§impl JrRole for AgentToClient
impl JrRole for AgentToClient
Source§type HandlerEndpoint = Client
type HandlerEndpoint = Client
The default endpoint type for handlers registered on this role. Read more
Source§async fn default_message_handler(
message: MessageCx,
cx: JrConnectionCx<Self>,
) -> Result<(), Error>
async fn default_message_handler( message: MessageCx, cx: JrConnectionCx<Self>, ) -> Result<(), Error>
Method invoked when there is no defined message handler.
Source§impl Ord for AgentToClient
impl Ord for AgentToClient
Source§fn cmp(&self, other: &AgentToClient) -> Ordering
fn cmp(&self, other: &AgentToClient) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AgentToClient
impl PartialEq for AgentToClient
Source§impl PartialOrd for AgentToClient
impl PartialOrd for AgentToClient
impl Copy for AgentToClient
impl Eq for AgentToClient
impl HasDefaultEndpoint for AgentToClient
impl StructuralPartialEq for AgentToClient
Auto Trait Implementations§
impl Freeze for AgentToClient
impl RefUnwindSafe for AgentToClient
impl Send for AgentToClient
impl Sync for AgentToClient
impl Unpin for AgentToClient
impl UnwindSafe for AgentToClient
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