pub struct Voters<'a> {
pub validator: &'a str,
/* private fields */
}
Fields§
§validator: &'a str
Implementations§
Source§impl<'a> Voters<'a>
impl<'a> Voters<'a>
pub fn create(terra: &'a Terra, validator: &'a str) -> Voters<'a>
pub async fn votes(&self) -> Result<LCDResult<Vec<OracleVotes>>>
pub async fn prevotes(&self) -> Result<LCDResult<Vec<OraclePreVotes>>>
pub async fn feeder(&self) -> Result<LCDResult<String>>
pub async fn miss(&self) -> Result<LCDResult<String>>
Auto Trait Implementations§
impl<'a> Freeze for Voters<'a>
impl<'a> !RefUnwindSafe for Voters<'a>
impl<'a> Send for Voters<'a>
impl<'a> Sync for Voters<'a>
impl<'a> Unpin for Voters<'a>
impl<'a> !UnwindSafe for Voters<'a>
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