pub struct IdentityTransform;Expand description
The default transform, the raw data is propagated as is to the application layer gossipsub.
Trait Implementations§
Source§impl Clone for IdentityTransform
impl Clone for IdentityTransform
Source§fn clone(&self) -> IdentityTransform
fn clone(&self) -> IdentityTransform
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 DataTransform for IdentityTransform
impl DataTransform for IdentityTransform
Source§fn inbound_transform(
&self,
raw_message: RawGossipsubMessage,
) -> Result<GossipsubMessage, Error>
fn inbound_transform( &self, raw_message: RawGossipsubMessage, ) -> Result<GossipsubMessage, Error>
Takes a
RawGossipsubMessage received and converts it to a GossipsubMessage.Source§impl Default for IdentityTransform
impl Default for IdentityTransform
Source§fn default() -> IdentityTransform
fn default() -> IdentityTransform
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for IdentityTransform
impl RefUnwindSafe for IdentityTransform
impl Send for IdentityTransform
impl Sync for IdentityTransform
impl Unpin for IdentityTransform
impl UnwindSafe for IdentityTransform
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more