pub enum TimeoutMessage {
Post {
requests: Vec<Request>,
timeout_proof: Proof,
},
PostResponse {
responses: Vec<PostResponse>,
timeout_proof: Proof,
},
Get {
requests: Vec<Request>,
},
}
Expand description
A timeout message holds a batch of messages to be timed-out
Variants§
Post
A non memership proof for POST requests
Fields
PostResponse
A non memership proof for POST requests
Fields
§
responses: Vec<PostResponse>
Request timeouts
Get
There are no proofs for Get timeouts, we only need to ensure that the timeout timestamp has elapsed on the host
Implementations§
Trait Implementations§
Source§impl Clone for TimeoutMessage
impl Clone for TimeoutMessage
Source§fn clone(&self) -> TimeoutMessage
fn clone(&self) -> TimeoutMessage
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 TimeoutMessage
impl Debug for TimeoutMessage
Source§impl Decode for TimeoutMessage
impl Decode for TimeoutMessage
Source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy,
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy, ) -> Result<Self, Error>
Attempt to deserialise the value from input.
Source§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
Source§impl Encode for TimeoutMessage
impl Encode for TimeoutMessage
Source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
Source§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy, )
Convert self to a slice and append it to the destination.
Source§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.
Source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
Source§impl PartialEq for TimeoutMessage
impl PartialEq for TimeoutMessage
Source§impl TypeInfo for TimeoutMessage
impl TypeInfo for TimeoutMessage
impl EncodeLike for TimeoutMessage
impl Eq for TimeoutMessage
impl StructuralPartialEq for TimeoutMessage
Auto Trait Implementations§
impl Freeze for TimeoutMessage
impl RefUnwindSafe for TimeoutMessage
impl Send for TimeoutMessage
impl Sync for TimeoutMessage
impl Unpin for TimeoutMessage
impl UnwindSafe for TimeoutMessage
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