#[non_exhaustive]pub enum Side {
Downstream,
Upstream,
Other(String),
}Expand description
Which end of a relay a peer sits on.
This is the direction the connection was made in, not the direction
subscriptions flow. A downstream peer may publish and an upstream peer may
subscribe; for subscription causality see
EventData::SubscriptionDerivation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Downstream
The peer connected to this relay.
Upstream
This relay connected to the peer — an origin or an upstream relay.
Other(String)
A side this version of the crate does not know, kept verbatim.
Implementations§
Trait Implementations§
impl Eq for Side
impl StructuralPartialEq for Side
Auto Trait Implementations§
impl Freeze for Side
impl RefUnwindSafe for Side
impl Send for Side
impl Sync for Side
impl Unpin for Side
impl UnsafeUnpin for Side
impl UnwindSafe for Side
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