Struct kitsune_p2p::wire::Gossip
source · [−]pub struct Gossip {
pub space: Arc<KitsuneSpace>,
pub data: WireData,
pub module: GossipModuleType,
}
Expand description
Gossip op with opaque data section, to be forwarded to gossip module. uses low-level notify, not request
Fields
space: Arc<KitsuneSpace>
data: WireData
module: GossipModuleType
Trait Implementations
Variant identifier (for debugging or as a cheap discriminant).
Encode this item to given writer. You may wish to first wrap your writer in a BufWriter. Read more
Decode a reader into this item. You may wish to first wrap your reader in a BufReader. Read more
Encode this item to an owned vector of bytes.
Uses encode()
internally. Read more
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
Auto Trait Implementations
impl RefUnwindSafe for Gossip
impl UnwindSafe for Gossip
Blanket Implementations
Mutably borrows from an owned value. Read more
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more