Struct totem_primitives::timekeeping::Timekeeper
source · [−]pub struct Timekeeper<AccountId, ReferenceHash, NumberOfBlocks, LockStatus, StatusOfTimeRecord, ReasonCodeStruct, PostingPeriod, StartOrEndBlockNumber, NumberOfBreaks> {
pub worker: AccountId,
pub project_hash: ReferenceHash,
pub total_blocks: NumberOfBlocks,
pub locked_status: LockStatus,
pub locked_reason: ReasonCodeStruct,
pub submit_status: StatusOfTimeRecord,
pub reason_code: ReasonCodeStruct,
pub posting_period: PostingPeriod,
pub start_block: StartOrEndBlockNumber,
pub end_block: StartOrEndBlockNumber,
pub nr_of_breaks: NumberOfBreaks,
}
Expand description
The individual time record.
Fields
worker: AccountId
project_hash: ReferenceHash
total_blocks: NumberOfBlocks
locked_status: LockStatus
locked_reason: ReasonCodeStruct
submit_status: StatusOfTimeRecord
reason_code: ReasonCodeStruct
posting_period: PostingPeriod
start_block: StartOrEndBlockNumber
end_block: StartOrEndBlockNumber
nr_of_breaks: NumberOfBreaks
Trait Implementations
impl<AccountId: Clone, ReferenceHash: Clone, NumberOfBlocks: Clone, LockStatus: Clone, StatusOfTimeRecord: Clone, ReasonCodeStruct: Clone, PostingPeriod: Clone, StartOrEndBlockNumber: Clone, NumberOfBreaks: Clone> Clone for Timekeeper<AccountId, ReferenceHash, NumberOfBlocks, LockStatus, StatusOfTimeRecord, ReasonCodeStruct, PostingPeriod, StartOrEndBlockNumber, NumberOfBreaks>
impl<AccountId: Clone, ReferenceHash: Clone, NumberOfBlocks: Clone, LockStatus: Clone, StatusOfTimeRecord: Clone, ReasonCodeStruct: Clone, PostingPeriod: Clone, StartOrEndBlockNumber: Clone, NumberOfBreaks: Clone> Clone for Timekeeper<AccountId, ReferenceHash, NumberOfBlocks, LockStatus, StatusOfTimeRecord, ReasonCodeStruct, PostingPeriod, StartOrEndBlockNumber, NumberOfBreaks>
fn clone(
&self
) -> Timekeeper<AccountId, ReferenceHash, NumberOfBlocks, LockStatus, StatusOfTimeRecord, ReasonCodeStruct, PostingPeriod, StartOrEndBlockNumber, NumberOfBreaks>
fn clone(
&self
) -> Timekeeper<AccountId, ReferenceHash, NumberOfBlocks, LockStatus, StatusOfTimeRecord, ReasonCodeStruct, PostingPeriod, StartOrEndBlockNumber, NumberOfBreaks>
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl<AccountId: Debug, ReferenceHash: Debug, NumberOfBlocks: Debug, LockStatus: Debug, StatusOfTimeRecord: Debug, ReasonCodeStruct: Debug, PostingPeriod: Debug, StartOrEndBlockNumber: Debug, NumberOfBreaks: Debug> Debug for Timekeeper<AccountId, ReferenceHash, NumberOfBlocks, LockStatus, StatusOfTimeRecord, ReasonCodeStruct, PostingPeriod, StartOrEndBlockNumber, NumberOfBreaks>
impl<AccountId: Debug, ReferenceHash: Debug, NumberOfBlocks: Debug, LockStatus: Debug, StatusOfTimeRecord: Debug, ReasonCodeStruct: Debug, PostingPeriod: Debug, StartOrEndBlockNumber: Debug, NumberOfBreaks: Debug> Debug for Timekeeper<AccountId, ReferenceHash, NumberOfBlocks, LockStatus, StatusOfTimeRecord, ReasonCodeStruct, PostingPeriod, StartOrEndBlockNumber, NumberOfBreaks>
impl<AccountId, ReferenceHash, NumberOfBlocks, LockStatus, StatusOfTimeRecord, ReasonCodeStruct, PostingPeriod, StartOrEndBlockNumber, NumberOfBreaks> Decode for Timekeeper<AccountId, ReferenceHash, NumberOfBlocks, LockStatus, StatusOfTimeRecord, ReasonCodeStruct, PostingPeriod, StartOrEndBlockNumber, NumberOfBreaks> where
AccountId: Decode,
AccountId: Decode,
ReferenceHash: Decode,
ReferenceHash: Decode,
NumberOfBlocks: Decode,
NumberOfBlocks: Decode,
LockStatus: Decode,
LockStatus: Decode,
ReasonCodeStruct: Decode,
ReasonCodeStruct: Decode,
StatusOfTimeRecord: Decode,
StatusOfTimeRecord: Decode,
ReasonCodeStruct: Decode,
ReasonCodeStruct: Decode,
PostingPeriod: Decode,
PostingPeriod: Decode,
StartOrEndBlockNumber: Decode,
StartOrEndBlockNumber: Decode,
StartOrEndBlockNumber: Decode,
StartOrEndBlockNumber: Decode,
NumberOfBreaks: Decode,
NumberOfBreaks: Decode,
impl<AccountId, ReferenceHash, NumberOfBlocks, LockStatus, StatusOfTimeRecord, ReasonCodeStruct, PostingPeriod, StartOrEndBlockNumber, NumberOfBreaks> Decode for Timekeeper<AccountId, ReferenceHash, NumberOfBlocks, LockStatus, StatusOfTimeRecord, ReasonCodeStruct, PostingPeriod, StartOrEndBlockNumber, NumberOfBreaks> where
AccountId: Decode,
AccountId: Decode,
ReferenceHash: Decode,
ReferenceHash: Decode,
NumberOfBlocks: Decode,
NumberOfBlocks: Decode,
LockStatus: Decode,
LockStatus: Decode,
ReasonCodeStruct: Decode,
ReasonCodeStruct: Decode,
StatusOfTimeRecord: Decode,
StatusOfTimeRecord: Decode,
ReasonCodeStruct: Decode,
ReasonCodeStruct: Decode,
PostingPeriod: Decode,
PostingPeriod: Decode,
StartOrEndBlockNumber: Decode,
StartOrEndBlockNumber: Decode,
StartOrEndBlockNumber: Decode,
StartOrEndBlockNumber: Decode,
NumberOfBreaks: Decode,
NumberOfBreaks: Decode,
impl<AccountId: Default, ReferenceHash: Default, NumberOfBlocks: Default, LockStatus: Default, StatusOfTimeRecord: Default, ReasonCodeStruct: Default, PostingPeriod: Default, StartOrEndBlockNumber: Default, NumberOfBreaks: Default> Default for Timekeeper<AccountId, ReferenceHash, NumberOfBlocks, LockStatus, StatusOfTimeRecord, ReasonCodeStruct, PostingPeriod, StartOrEndBlockNumber, NumberOfBreaks>
impl<AccountId: Default, ReferenceHash: Default, NumberOfBlocks: Default, LockStatus: Default, StatusOfTimeRecord: Default, ReasonCodeStruct: Default, PostingPeriod: Default, StartOrEndBlockNumber: Default, NumberOfBreaks: Default> Default for Timekeeper<AccountId, ReferenceHash, NumberOfBlocks, LockStatus, StatusOfTimeRecord, ReasonCodeStruct, PostingPeriod, StartOrEndBlockNumber, NumberOfBreaks>
fn default(
) -> Timekeeper<AccountId, ReferenceHash, NumberOfBlocks, LockStatus, StatusOfTimeRecord, ReasonCodeStruct, PostingPeriod, StartOrEndBlockNumber, NumberOfBreaks>
fn default(
) -> Timekeeper<AccountId, ReferenceHash, NumberOfBlocks, LockStatus, StatusOfTimeRecord, ReasonCodeStruct, PostingPeriod, StartOrEndBlockNumber, NumberOfBreaks>
Returns the “default value” for a type. Read more
impl<AccountId, ReferenceHash, NumberOfBlocks, LockStatus, StatusOfTimeRecord, ReasonCodeStruct, PostingPeriod, StartOrEndBlockNumber, NumberOfBreaks> Encode for Timekeeper<AccountId, ReferenceHash, NumberOfBlocks, LockStatus, StatusOfTimeRecord, ReasonCodeStruct, PostingPeriod, StartOrEndBlockNumber, NumberOfBreaks> where
AccountId: Encode,
AccountId: Encode,
ReferenceHash: Encode,
ReferenceHash: Encode,
NumberOfBlocks: Encode,
NumberOfBlocks: Encode,
LockStatus: Encode,
LockStatus: Encode,
ReasonCodeStruct: Encode,
ReasonCodeStruct: Encode,
StatusOfTimeRecord: Encode,
StatusOfTimeRecord: Encode,
ReasonCodeStruct: Encode,
ReasonCodeStruct: Encode,
PostingPeriod: Encode,
PostingPeriod: Encode,
StartOrEndBlockNumber: Encode,
StartOrEndBlockNumber: Encode,
StartOrEndBlockNumber: Encode,
StartOrEndBlockNumber: Encode,
NumberOfBreaks: Encode,
NumberOfBreaks: Encode,
impl<AccountId, ReferenceHash, NumberOfBlocks, LockStatus, StatusOfTimeRecord, ReasonCodeStruct, PostingPeriod, StartOrEndBlockNumber, NumberOfBreaks> Encode for Timekeeper<AccountId, ReferenceHash, NumberOfBlocks, LockStatus, StatusOfTimeRecord, ReasonCodeStruct, PostingPeriod, StartOrEndBlockNumber, NumberOfBreaks> where
AccountId: Encode,
AccountId: Encode,
ReferenceHash: Encode,
ReferenceHash: Encode,
NumberOfBlocks: Encode,
NumberOfBlocks: Encode,
LockStatus: Encode,
LockStatus: Encode,
ReasonCodeStruct: Encode,
ReasonCodeStruct: Encode,
StatusOfTimeRecord: Encode,
StatusOfTimeRecord: Encode,
ReasonCodeStruct: Encode,
ReasonCodeStruct: Encode,
PostingPeriod: Encode,
PostingPeriod: Encode,
StartOrEndBlockNumber: Encode,
StartOrEndBlockNumber: Encode,
StartOrEndBlockNumber: Encode,
StartOrEndBlockNumber: Encode,
NumberOfBreaks: Encode,
NumberOfBreaks: Encode,
impl<AccountId: PartialEq, ReferenceHash: PartialEq, NumberOfBlocks: PartialEq, LockStatus: PartialEq, StatusOfTimeRecord: PartialEq, ReasonCodeStruct: PartialEq, PostingPeriod: PartialEq, StartOrEndBlockNumber: PartialEq, NumberOfBreaks: PartialEq> PartialEq<Timekeeper<AccountId, ReferenceHash, NumberOfBlocks, LockStatus, StatusOfTimeRecord, ReasonCodeStruct, PostingPeriod, StartOrEndBlockNumber, NumberOfBreaks>> for Timekeeper<AccountId, ReferenceHash, NumberOfBlocks, LockStatus, StatusOfTimeRecord, ReasonCodeStruct, PostingPeriod, StartOrEndBlockNumber, NumberOfBreaks>
impl<AccountId: PartialEq, ReferenceHash: PartialEq, NumberOfBlocks: PartialEq, LockStatus: PartialEq, StatusOfTimeRecord: PartialEq, ReasonCodeStruct: PartialEq, PostingPeriod: PartialEq, StartOrEndBlockNumber: PartialEq, NumberOfBreaks: PartialEq> PartialEq<Timekeeper<AccountId, ReferenceHash, NumberOfBlocks, LockStatus, StatusOfTimeRecord, ReasonCodeStruct, PostingPeriod, StartOrEndBlockNumber, NumberOfBreaks>> for Timekeeper<AccountId, ReferenceHash, NumberOfBlocks, LockStatus, StatusOfTimeRecord, ReasonCodeStruct, PostingPeriod, StartOrEndBlockNumber, NumberOfBreaks>
fn eq(
&self,
other: &Timekeeper<AccountId, ReferenceHash, NumberOfBlocks, LockStatus, StatusOfTimeRecord, ReasonCodeStruct, PostingPeriod, StartOrEndBlockNumber, NumberOfBreaks>
) -> bool
fn eq(
&self,
other: &Timekeeper<AccountId, ReferenceHash, NumberOfBlocks, LockStatus, StatusOfTimeRecord, ReasonCodeStruct, PostingPeriod, StartOrEndBlockNumber, NumberOfBreaks>
) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(
&self,
other: &Timekeeper<AccountId, ReferenceHash, NumberOfBlocks, LockStatus, StatusOfTimeRecord, ReasonCodeStruct, PostingPeriod, StartOrEndBlockNumber, NumberOfBreaks>
) -> bool
fn ne(
&self,
other: &Timekeeper<AccountId, ReferenceHash, NumberOfBlocks, LockStatus, StatusOfTimeRecord, ReasonCodeStruct, PostingPeriod, StartOrEndBlockNumber, NumberOfBreaks>
) -> bool
This method tests for !=
.
impl<AccountId, ReferenceHash, NumberOfBlocks, LockStatus, StatusOfTimeRecord, ReasonCodeStruct, PostingPeriod, StartOrEndBlockNumber, NumberOfBreaks> TypeInfo for Timekeeper<AccountId, ReferenceHash, NumberOfBlocks, LockStatus, StatusOfTimeRecord, ReasonCodeStruct, PostingPeriod, StartOrEndBlockNumber, NumberOfBreaks> where
AccountId: TypeInfo + 'static,
ReferenceHash: TypeInfo + 'static,
NumberOfBlocks: TypeInfo + 'static,
LockStatus: TypeInfo + 'static,
ReasonCodeStruct: TypeInfo + 'static,
StatusOfTimeRecord: TypeInfo + 'static,
ReasonCodeStruct: TypeInfo + 'static,
PostingPeriod: TypeInfo + 'static,
StartOrEndBlockNumber: TypeInfo + 'static,
StartOrEndBlockNumber: TypeInfo + 'static,
NumberOfBreaks: TypeInfo + 'static,
AccountId: TypeInfo + 'static,
ReferenceHash: TypeInfo + 'static,
NumberOfBlocks: TypeInfo + 'static,
LockStatus: TypeInfo + 'static,
StatusOfTimeRecord: TypeInfo + 'static,
ReasonCodeStruct: TypeInfo + 'static,
PostingPeriod: TypeInfo + 'static,
StartOrEndBlockNumber: TypeInfo + 'static,
NumberOfBreaks: TypeInfo + 'static,
impl<AccountId, ReferenceHash, NumberOfBlocks, LockStatus, StatusOfTimeRecord, ReasonCodeStruct, PostingPeriod, StartOrEndBlockNumber, NumberOfBreaks> TypeInfo for Timekeeper<AccountId, ReferenceHash, NumberOfBlocks, LockStatus, StatusOfTimeRecord, ReasonCodeStruct, PostingPeriod, StartOrEndBlockNumber, NumberOfBreaks> where
AccountId: TypeInfo + 'static,
ReferenceHash: TypeInfo + 'static,
NumberOfBlocks: TypeInfo + 'static,
LockStatus: TypeInfo + 'static,
ReasonCodeStruct: TypeInfo + 'static,
StatusOfTimeRecord: TypeInfo + 'static,
ReasonCodeStruct: TypeInfo + 'static,
PostingPeriod: TypeInfo + 'static,
StartOrEndBlockNumber: TypeInfo + 'static,
StartOrEndBlockNumber: TypeInfo + 'static,
NumberOfBreaks: TypeInfo + 'static,
AccountId: TypeInfo + 'static,
ReferenceHash: TypeInfo + 'static,
NumberOfBlocks: TypeInfo + 'static,
LockStatus: TypeInfo + 'static,
StatusOfTimeRecord: TypeInfo + 'static,
ReasonCodeStruct: TypeInfo + 'static,
PostingPeriod: TypeInfo + 'static,
StartOrEndBlockNumber: TypeInfo + 'static,
NumberOfBreaks: TypeInfo + 'static,
impl<AccountId: Copy, ReferenceHash: Copy, NumberOfBlocks: Copy, LockStatus: Copy, StatusOfTimeRecord: Copy, ReasonCodeStruct: Copy, PostingPeriod: Copy, StartOrEndBlockNumber: Copy, NumberOfBreaks: Copy> Copy for Timekeeper<AccountId, ReferenceHash, NumberOfBlocks, LockStatus, StatusOfTimeRecord, ReasonCodeStruct, PostingPeriod, StartOrEndBlockNumber, NumberOfBreaks>
impl<AccountId, ReferenceHash, NumberOfBlocks, LockStatus, StatusOfTimeRecord, ReasonCodeStruct, PostingPeriod, StartOrEndBlockNumber, NumberOfBreaks> EncodeLike<Timekeeper<AccountId, ReferenceHash, NumberOfBlocks, LockStatus, StatusOfTimeRecord, ReasonCodeStruct, PostingPeriod, StartOrEndBlockNumber, NumberOfBreaks>> for Timekeeper<AccountId, ReferenceHash, NumberOfBlocks, LockStatus, StatusOfTimeRecord, ReasonCodeStruct, PostingPeriod, StartOrEndBlockNumber, NumberOfBreaks> where
AccountId: Encode,
AccountId: Encode,
ReferenceHash: Encode,
ReferenceHash: Encode,
NumberOfBlocks: Encode,
NumberOfBlocks: Encode,
LockStatus: Encode,
LockStatus: Encode,
ReasonCodeStruct: Encode,
ReasonCodeStruct: Encode,
StatusOfTimeRecord: Encode,
StatusOfTimeRecord: Encode,
ReasonCodeStruct: Encode,
ReasonCodeStruct: Encode,
PostingPeriod: Encode,
PostingPeriod: Encode,
StartOrEndBlockNumber: Encode,
StartOrEndBlockNumber: Encode,
StartOrEndBlockNumber: Encode,
StartOrEndBlockNumber: Encode,
NumberOfBreaks: Encode,
NumberOfBreaks: Encode,
impl<AccountId: Eq, ReferenceHash: Eq, NumberOfBlocks: Eq, LockStatus: Eq, StatusOfTimeRecord: Eq, ReasonCodeStruct: Eq, PostingPeriod: Eq, StartOrEndBlockNumber: Eq, NumberOfBreaks: Eq> Eq for Timekeeper<AccountId, ReferenceHash, NumberOfBlocks, LockStatus, StatusOfTimeRecord, ReasonCodeStruct, PostingPeriod, StartOrEndBlockNumber, NumberOfBreaks>
impl<AccountId, ReferenceHash, NumberOfBlocks, LockStatus, StatusOfTimeRecord, ReasonCodeStruct, PostingPeriod, StartOrEndBlockNumber, NumberOfBreaks> StructuralEq for Timekeeper<AccountId, ReferenceHash, NumberOfBlocks, LockStatus, StatusOfTimeRecord, ReasonCodeStruct, PostingPeriod, StartOrEndBlockNumber, NumberOfBreaks>
impl<AccountId, ReferenceHash, NumberOfBlocks, LockStatus, StatusOfTimeRecord, ReasonCodeStruct, PostingPeriod, StartOrEndBlockNumber, NumberOfBreaks> StructuralPartialEq for Timekeeper<AccountId, ReferenceHash, NumberOfBlocks, LockStatus, StatusOfTimeRecord, ReasonCodeStruct, PostingPeriod, StartOrEndBlockNumber, NumberOfBreaks>
Auto Trait Implementations
impl<AccountId, ReferenceHash, NumberOfBlocks, LockStatus, StatusOfTimeRecord, ReasonCodeStruct, PostingPeriod, StartOrEndBlockNumber, NumberOfBreaks> RefUnwindSafe for Timekeeper<AccountId, ReferenceHash, NumberOfBlocks, LockStatus, StatusOfTimeRecord, ReasonCodeStruct, PostingPeriod, StartOrEndBlockNumber, NumberOfBreaks> where
AccountId: RefUnwindSafe,
LockStatus: RefUnwindSafe,
NumberOfBlocks: RefUnwindSafe,
NumberOfBreaks: RefUnwindSafe,
PostingPeriod: RefUnwindSafe,
ReasonCodeStruct: RefUnwindSafe,
ReferenceHash: RefUnwindSafe,
StartOrEndBlockNumber: RefUnwindSafe,
StatusOfTimeRecord: RefUnwindSafe,
impl<AccountId, ReferenceHash, NumberOfBlocks, LockStatus, StatusOfTimeRecord, ReasonCodeStruct, PostingPeriod, StartOrEndBlockNumber, NumberOfBreaks> Send for Timekeeper<AccountId, ReferenceHash, NumberOfBlocks, LockStatus, StatusOfTimeRecord, ReasonCodeStruct, PostingPeriod, StartOrEndBlockNumber, NumberOfBreaks> where
AccountId: Send,
LockStatus: Send,
NumberOfBlocks: Send,
NumberOfBreaks: Send,
PostingPeriod: Send,
ReasonCodeStruct: Send,
ReferenceHash: Send,
StartOrEndBlockNumber: Send,
StatusOfTimeRecord: Send,
impl<AccountId, ReferenceHash, NumberOfBlocks, LockStatus, StatusOfTimeRecord, ReasonCodeStruct, PostingPeriod, StartOrEndBlockNumber, NumberOfBreaks> Sync for Timekeeper<AccountId, ReferenceHash, NumberOfBlocks, LockStatus, StatusOfTimeRecord, ReasonCodeStruct, PostingPeriod, StartOrEndBlockNumber, NumberOfBreaks> where
AccountId: Sync,
LockStatus: Sync,
NumberOfBlocks: Sync,
NumberOfBreaks: Sync,
PostingPeriod: Sync,
ReasonCodeStruct: Sync,
ReferenceHash: Sync,
StartOrEndBlockNumber: Sync,
StatusOfTimeRecord: Sync,
impl<AccountId, ReferenceHash, NumberOfBlocks, LockStatus, StatusOfTimeRecord, ReasonCodeStruct, PostingPeriod, StartOrEndBlockNumber, NumberOfBreaks> Unpin for Timekeeper<AccountId, ReferenceHash, NumberOfBlocks, LockStatus, StatusOfTimeRecord, ReasonCodeStruct, PostingPeriod, StartOrEndBlockNumber, NumberOfBreaks> where
AccountId: Unpin,
LockStatus: Unpin,
NumberOfBlocks: Unpin,
NumberOfBreaks: Unpin,
PostingPeriod: Unpin,
ReasonCodeStruct: Unpin,
ReferenceHash: Unpin,
StartOrEndBlockNumber: Unpin,
StatusOfTimeRecord: Unpin,
impl<AccountId, ReferenceHash, NumberOfBlocks, LockStatus, StatusOfTimeRecord, ReasonCodeStruct, PostingPeriod, StartOrEndBlockNumber, NumberOfBreaks> UnwindSafe for Timekeeper<AccountId, ReferenceHash, NumberOfBlocks, LockStatus, StatusOfTimeRecord, ReasonCodeStruct, PostingPeriod, StartOrEndBlockNumber, NumberOfBreaks> where
AccountId: UnwindSafe,
LockStatus: UnwindSafe,
NumberOfBlocks: UnwindSafe,
NumberOfBreaks: UnwindSafe,
PostingPeriod: UnwindSafe,
ReasonCodeStruct: UnwindSafe,
ReferenceHash: UnwindSafe,
StartOrEndBlockNumber: UnwindSafe,
StatusOfTimeRecord: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>ⓘimpl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>ⓘimpl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<I, A> Iterator for Box<I, A> where
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more
pub fn blake2_128_concat(&self) -> Vec<u8, Global>ⓘ
pub fn twox_64_concat(&self) -> Vec<u8, Global>ⓘ
The counterpart to unchecked_from
.
Consume self to return an equivalent value of T
.
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