Struct tlsn_core::transcript::RedactedTranscript
source · pub struct RedactedTranscript { /* private fields */ }
Expand description
A transcript which may have some data redacted.
Implementations§
source§impl RedactedTranscript
impl RedactedTranscript
sourcepub fn new(len: usize, slices: Vec<TranscriptSlice>) -> Self
pub fn new(len: usize, slices: Vec<TranscriptSlice>) -> Self
Creates a new redacted transcript with the given length.
All bytes in the transcript are initialized to 0.
§Arguments
len
- The length of the transcriptslices
- A list of slices of data which have been authenticated
sourcepub fn authed(&self) -> &RangeSet<usize>
pub fn authed(&self) -> &RangeSet<usize>
Returns all the ranges of data which have been authenticated.
sourcepub fn redacted(&self) -> &RangeSet<usize>
pub fn redacted(&self) -> &RangeSet<usize>
Returns all the ranges of data which have been redacted.
sourcepub fn set_redacted(&mut self, value: u8)
pub fn set_redacted(&mut self, value: u8)
Sets all bytes in the transcript which were redacted.
§Arguments
value
- The value to set the redacted bytes to
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RedactedTranscript
impl RefUnwindSafe for RedactedTranscript
impl Send for RedactedTranscript
impl Sync for RedactedTranscript
impl Unpin for RedactedTranscript
impl UnwindSafe for RedactedTranscript
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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