Enum garage_model::block::BlockRpc [−][src]
pub enum BlockRpc {
Ok,
GetBlock(Hash),
PutBlock {
hash: Hash,
data: DataBlock,
},
NeedBlockQuery(Hash),
NeedBlockReply(bool),
}
Expand description
RPC messages used to share blocks of data between nodes
Variants
Ok
GetBlock(Hash)
Tuple Fields
0: Hash
Message to ask for a block of data, by hash
PutBlock
Message to send a block of data, either because requested, of for first delivery of new block
NeedBlockQuery(Hash)
Tuple Fields
0: Hash
Ask other node if they should have this block, but don’t actually have it
NeedBlockReply(bool)
Tuple Fields
0: bool
Response : whether the node do require that block
Trait Implementations
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 BlockRpc
impl UnwindSafe for BlockRpc
Blanket Implementations
Mutably borrows from an owned value. 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