pub struct ValueResponse<Ctx: Context> {
pub start_height: Ctx::Height,
pub values: Vec<RawDecidedValue<Ctx>>,
}Fields§
§start_height: Ctx::HeightThe height of the first value in the response.
values: Vec<RawDecidedValue<Ctx>>Values are sequentially ordered by height.
Implementations§
Source§impl<Ctx: Context> ValueResponse<Ctx>
impl<Ctx: Context> ValueResponse<Ctx>
pub fn new(start_height: Ctx::Height, values: Vec<RawDecidedValue<Ctx>>) -> Self
pub fn end_height(&self) -> Option<Ctx::Height>
Trait Implementations§
Source§impl<Ctx: Context> BorshDeserialize for ValueResponse<Ctx>
impl<Ctx: Context> BorshDeserialize for ValueResponse<Ctx>
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl<Ctx: Context> BorshSerialize for ValueResponse<Ctx>
impl<Ctx: Context> BorshSerialize for ValueResponse<Ctx>
Source§impl<Ctx: Context> Clone for ValueResponse<Ctx>
impl<Ctx: Context> Clone for ValueResponse<Ctx>
Source§impl<Ctx: Context> Debug for ValueResponse<Ctx>
impl<Ctx: Context> Debug for ValueResponse<Ctx>
Source§impl<Ctx: Context> PartialEq for ValueResponse<Ctx>
impl<Ctx: Context> PartialEq for ValueResponse<Ctx>
impl<Ctx: Context> Eq for ValueResponse<Ctx>
Auto Trait Implementations§
impl<Ctx> Freeze for ValueResponse<Ctx>
impl<Ctx> RefUnwindSafe for ValueResponse<Ctx>where
<Ctx as Context>::Height: RefUnwindSafe,
<<Ctx as Context>::Value as Value>::Id: RefUnwindSafe,
<Ctx as Context>::Address: RefUnwindSafe,
<<Ctx as Context>::SigningScheme as SigningScheme>::Signature: RefUnwindSafe,
impl<Ctx> Send for ValueResponse<Ctx>
impl<Ctx> Sync for ValueResponse<Ctx>
impl<Ctx> Unpin for ValueResponse<Ctx>
impl<Ctx> UnsafeUnpin for ValueResponse<Ctx>
impl<Ctx> UnwindSafe for ValueResponse<Ctx>where
<Ctx as Context>::Height: UnwindSafe,
<<Ctx as Context>::Value as Value>::Id: UnwindSafe,
<Ctx as Context>::Address: UnwindSafe,
<<Ctx as Context>::SigningScheme as SigningScheme>::Signature: UnwindSafe,
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more