pub struct V1TransportDeserializer {
    pub chain_params: Rc<RefCell<ChainParams>>,
    pub node_id: NodeId,
    pub hasher: Rc<RefCell<Hash256>>,
    pub data_hash: Rc<RefCell<u256>>,
    pub in_data: bool,
    pub hdrbuf: DataStream,
    pub hdr: MessageHeader,
    pub recv: DataStream,
    pub n_hdr_pos: u32,
    pub n_data_pos: u32,
}

Fields§

§chain_params: Rc<RefCell<ChainParams>>§node_id: NodeId

| Only for logging |

§hasher: Rc<RefCell<Hash256>>§data_hash: Rc<RefCell<u256>>§in_data: bool

| parsing header (false) or data (true) |

§hdrbuf: DataStream

| partially received header |

§hdr: MessageHeader

| complete header |

§recv: DataStream

| received message data |

§n_hdr_pos: u32§n_data_pos: u32

Implementations§

Trait Implementations§

| returns true if the current deserialization | is complete |
| decomposes a message from the context |
| read and deserialize data, advances | msg_bytes data pointer |
| Close if non-empty. |
| set the serialization context version |

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Performs the conversion. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Convert type of a const pointer. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.