Struct bitcoin_netmsg::NetMessage
source · pub struct NetMessage {
pub recv: DataStream,
pub time: Option<OffsetDateTime>,
pub message_size: u32,
pub raw_message_size: u32,
pub command: String,
}
Expand description
| Transport protocol agnostic message | container. | | Ideally it should only contain receive | time, payload, command and size. |
Fields§
§recv: DataStream
| received message data |
time: Option<OffsetDateTime>
| time of message receipt |
message_size: u32
| size of the payload |
raw_message_size: u32
| used wire size of the message (including | header/checksum) |
command: String
Implementations§
source§impl NetMessage
impl NetMessage
pub fn new(recv_in: DataStream) -> Self
pub fn set_version(&mut self, n_version_in: i32)
Auto Trait Implementations§
impl RefUnwindSafe for NetMessage
impl Send for NetMessage
impl Sync for NetMessage
impl Unpin for NetMessage
impl UnwindSafe for NetMessage
Blanket Implementations§
§impl<T, U> CastInto<U> for Twhere
U: CastFrom<T>,
impl<T, U> CastInto<U> for Twhere U: CastFrom<T>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> StaticUpcast<T> for T
impl<T> StaticUpcast<T> for T
§unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
Convert type of a const pointer. Read more