pub struct UntypedRole;Expand description
A dummy role you can use to exchange JSON-RPC messages without any knowledge of the underlying protocol. Don’t sue this.
Implementations§
Trait Implementations§
Source§impl Clone for UntypedRole
impl Clone for UntypedRole
Source§fn clone(&self) -> UntypedRole
fn clone(&self) -> UntypedRole
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 UntypedRole
impl Debug for UntypedRole
Source§impl Default for UntypedRole
impl Default for UntypedRole
Source§fn default() -> UntypedRole
fn default() -> UntypedRole
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UntypedRole
impl<'de> Deserialize<'de> for UntypedRole
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl HasPeer<UntypedRole> for UntypedRole
impl HasPeer<UntypedRole> for UntypedRole
Source§fn remote_style(&self, _peer: UntypedRole) -> RemoteStyle
fn remote_style(&self, _peer: UntypedRole) -> RemoteStyle
Returns the remote style for sending to this peer.
Source§impl Hash for UntypedRole
impl Hash for UntypedRole
Source§impl Ord for UntypedRole
impl Ord for UntypedRole
Source§fn cmp(&self, other: &UntypedRole) -> Ordering
fn cmp(&self, other: &UntypedRole) -> 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 UntypedRole
impl PartialEq for UntypedRole
Source§impl PartialOrd for UntypedRole
impl PartialOrd for UntypedRole
Source§impl Role for UntypedRole
impl Role for UntypedRole
Source§type Counterpart = UntypedRole
type Counterpart = UntypedRole
The role that this endpoint connects to. Read more
Source§async fn default_handle_dispatch_from(
&self,
message: Dispatch,
_connection: ConnectionTo<Self>,
) -> Result<Handled<Dispatch>, Error>
async fn default_handle_dispatch_from( &self, message: Dispatch, _connection: ConnectionTo<Self>, ) -> Result<Handled<Dispatch>, Error>
Method invoked when there is no defined message handler.
Source§fn counterpart(&self) -> Self::Counterpart
fn counterpart(&self) -> Self::Counterpart
Returns the counterpart role.
Source§impl Serialize for UntypedRole
impl Serialize for UntypedRole
impl Copy for UntypedRole
impl Eq for UntypedRole
impl StructuralPartialEq for UntypedRole
Auto Trait Implementations§
impl Freeze for UntypedRole
impl RefUnwindSafe for UntypedRole
impl Send for UntypedRole
impl Sync for UntypedRole
impl Unpin for UntypedRole
impl UnsafeUnpin for UntypedRole
impl UnwindSafe for UntypedRole
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