pub enum PeerEventEnum {
OPEN(PeerOpenEvent),
CLOSE(PeerCloseEvent),
CONNECTION(PeerConnectionEvent),
CALL(PeerCallEvent),
ERROR(PeerErrorEvent),
TIMEOUT,
}
Expand description
Response from GET /peers/{peer_id}/events
Variants
OPEN(PeerOpenEvent)
CLOSE(PeerCloseEvent)
CONNECTION(PeerConnectionEvent)
CALL(PeerCallEvent)
ERROR(PeerErrorEvent)
TIMEOUT
Trait Implementations
sourceimpl Clone for PeerEventEnum
impl Clone for PeerEventEnum
sourcefn clone(&self) -> PeerEventEnum
fn clone(&self) -> PeerEventEnum
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for PeerEventEnum
impl Debug for PeerEventEnum
sourceimpl<'de> Deserialize<'de> for PeerEventEnum
impl<'de> Deserialize<'de> for PeerEventEnum
sourcefn 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
sourceimpl PartialEq<PeerEventEnum> for PeerEventEnum
impl PartialEq<PeerEventEnum> for PeerEventEnum
sourcefn eq(&self, other: &PeerEventEnum) -> bool
fn eq(&self, other: &PeerEventEnum) -> bool
sourceimpl PartialOrd<PeerEventEnum> for PeerEventEnum
impl PartialOrd<PeerEventEnum> for PeerEventEnum
sourcefn partial_cmp(&self, other: &PeerEventEnum) -> Option<Ordering>
fn partial_cmp(&self, other: &PeerEventEnum) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresourceimpl Serialize for PeerEventEnum
impl Serialize for PeerEventEnum
impl StructuralPartialEq for PeerEventEnum
Auto Trait Implementations
impl RefUnwindSafe for PeerEventEnum
impl Send for PeerEventEnum
impl Sync for PeerEventEnum
impl Unpin for PeerEventEnum
impl UnwindSafe for PeerEventEnum
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more