Trait tor_cell::relaycell::RelayCellFields
source · pub trait RelayCellFields {
const RECOGNIZED_RANGE: Range<usize>;
const DIGEST_RANGE: Range<usize>;
const EMPTY_DIGEST: &'static [u8];
}
Expand description
Specifies field layout for a particular relay cell format.
Required Associated Constants§
sourceconst RECOGNIZED_RANGE: Range<usize>
const RECOGNIZED_RANGE: Range<usize>
The range containing the recognized
field, within a relay cell’s body.
sourceconst DIGEST_RANGE: Range<usize>
const DIGEST_RANGE: Range<usize>
The range containing the digest
field, within a relay cell’s body.
sourceconst EMPTY_DIGEST: &'static [u8]
const EMPTY_DIGEST: &'static [u8]
A static array of zeroes of the same size as this format uses for the
digest field. e.g. this enables updating a comparison-digest in one
hash-update method call, instead of having to loop over DIGEST_RANGE
.
Object Safety§
This trait is not object safe.