pub struct DiemBlockResource { /* private fields */ }Implementations§
Source§impl DiemBlockResource
impl DiemBlockResource
pub fn new_block_events(&self) -> &EventHandle
pub fn height(&self) -> u64
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DiemBlockResource
impl<'de> Deserialize<'de> for DiemBlockResource
Source§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
Source§impl MoveResource for DiemBlockResource
impl MoveResource for DiemBlockResource
Source§impl MoveStructType for DiemBlockResource
impl MoveStructType for DiemBlockResource
const MODULE_NAME: &'static IdentStr
const STRUCT_NAME: &'static IdentStr
fn module_identifier() -> Identifier
fn struct_identifier() -> Identifier
fn type_params() -> Vec<TypeTag>
fn struct_tag() -> StructTag
Auto Trait Implementations§
impl Freeze for DiemBlockResource
impl RefUnwindSafe for DiemBlockResource
impl Send for DiemBlockResource
impl Sync for DiemBlockResource
impl Unpin for DiemBlockResource
impl UnsafeUnpin for DiemBlockResource
impl UnwindSafe for DiemBlockResource
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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 moreimpl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> TestOnlyHash for T
impl<T> TestOnlyHash for T
Source§fn test_only_hash(&self) -> HashValue
fn test_only_hash(&self) -> HashValue
Generates a hash used only for tests.