Struct rings_node::backend::types::BackendMessage
source · pub struct BackendMessage {
pub message_type: u16,
pub extra: [u8; 30],
pub data: Vec<u8>,
}
Expand description
BackendMessage struct for CustomMessage. A backend message body’s length at least is 32bytes;
message_type
:[u8;2]
extra data
:[u8;30]
message data
:[u8]
Fields§
§message_type: u16
message_type
extra: [u8; 30]
extra bytes
data: Vec<u8>
data body
Implementations§
Trait Implementations§
source§impl Clone for BackendMessage
impl Clone for BackendMessage
source§fn clone(&self) -> BackendMessage
fn clone(&self) -> BackendMessage
Returns a copy 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 BackendMessage
impl Debug for BackendMessage
source§impl<'de> Deserialize<'de> for BackendMessage
impl<'de> Deserialize<'de> for BackendMessage
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 From<BackendMessage> for Bytes
impl From<BackendMessage> for Bytes
source§fn from(v: BackendMessage) -> Self
fn from(v: BackendMessage) -> Self
Converts to this type from the input type.
source§impl From<BackendMessage> for CustomBackendMessage
impl From<BackendMessage> for CustomBackendMessage
source§fn from(v: BackendMessage) -> Self
fn from(v: BackendMessage) -> Self
Converts to this type from the input type.
source§impl From<BackendMessage> for MaybeBackendMessage
impl From<BackendMessage> for MaybeBackendMessage
source§fn from(msg: BackendMessage) -> Self
fn from(msg: BackendMessage) -> Self
Converts to this type from the input type.
source§impl From<BackendMessage> for Vec<u8>
impl From<BackendMessage> for Vec<u8>
source§fn from(v: BackendMessage) -> Self
fn from(v: BackendMessage) -> Self
Converts to this type from the input type.
source§impl PartialEq<BackendMessage> for BackendMessage
impl PartialEq<BackendMessage> for BackendMessage
source§fn eq(&self, other: &BackendMessage) -> bool
fn eq(&self, other: &BackendMessage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BackendMessage
impl Serialize for BackendMessage
source§impl TryFrom<&[u8]> for BackendMessage
impl TryFrom<&[u8]> for BackendMessage
source§impl<T> TryFrom<(MessageType, &T)> for BackendMessagewhere
T: Serialize,
impl<T> TryFrom<(MessageType, &T)> for BackendMessagewhere T: Serialize,
impl Eq for BackendMessage
impl StructuralEq for BackendMessage
impl StructuralPartialEq for BackendMessage
Auto Trait Implementations§
impl RefUnwindSafe for BackendMessage
impl Send for BackendMessage
impl Sync for BackendMessage
impl Unpin for BackendMessage
impl UnwindSafe for BackendMessage
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
§impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedExplicit<'a> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedImplicit<'a> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere T: 'a,
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
§impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,
§fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut D ) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> FutureExt for T
impl<T> FutureExt for T
§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>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> Upcastable for Twhere
T: Any + Send + Sync + 'static,
impl<T> Upcastable for Twhere T: Any + Send + Sync + 'static,
§fn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
upcast ref
§fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
upcast mut ref