Struct sgxs::sgxs::CanonicalSgxsWriter
source · pub struct CanonicalSgxsWriter<'a, W: SgxsWrite + 'a> { /* private fields */ }
Implementations§
source§impl<'a, W: SgxsWrite + 'a> CanonicalSgxsWriter<'a, W>
impl<'a, W: SgxsWrite + 'a> CanonicalSgxsWriter<'a, W>
pub fn new(writer: &'a mut W, ecreate: MeasECreate, sized: bool) -> Result<Self>
sourcepub fn write_page<'b, R: Read + 'b, D: Into<MeasuredData<'b, R>>>(
&mut self,
data: D,
offset: Option<u64>,
secinfo: SecinfoTruncated
) -> Result<()>
pub fn write_page<'b, R: Read + 'b, D: Into<MeasuredData<'b, R>>>( &mut self, data: D, offset: Option<u64>, secinfo: SecinfoTruncated ) -> Result<()>
If offset is None, just append at the current offset.
sourcepub fn write_pages<R: Read>(
&mut self,
data: Option<&mut R>,
n: usize,
offset: Option<u64>,
secinfo: SecinfoTruncated
) -> Result<()>
pub fn write_pages<R: Read>( &mut self, data: Option<&mut R>, n: usize, offset: Option<u64>, secinfo: SecinfoTruncated ) -> Result<()>
If offset is None, just append at the current offset.
pub fn skip_page(&mut self)
pub fn skip_pages(&mut self, n: usize)
pub fn offset(&self) -> u64
Auto Trait Implementations§
impl<'a, W> Freeze for CanonicalSgxsWriter<'a, W>
impl<'a, W> RefUnwindSafe for CanonicalSgxsWriter<'a, W>where
W: RefUnwindSafe,
impl<'a, W> Send for CanonicalSgxsWriter<'a, W>where
W: Send,
impl<'a, W> Sync for CanonicalSgxsWriter<'a, W>where
W: Sync,
impl<'a, W> Unpin for CanonicalSgxsWriter<'a, W>
impl<'a, W> !UnwindSafe for CanonicalSgxsWriter<'a, W>
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