pub struct StreamRequestSealer { /* private fields */ }Expand description
One request writer. A failed call closes it and prevents a valid END.
Implementations§
Source§impl StreamRequestSealer
impl StreamRequestSealer
Sourcepub fn push(&mut self, part: &[u8]) -> Result<(usize, Option<Vec<u8>>), Error>
pub fn push(&mut self, part: &[u8]) -> Result<(usize, Option<Vec<u8>>), Error>
Add clear bytes. A full 64 KiB DATA record is returned when ready.
The returned count can be less than part.len(). Pass &part[used..]
to the next call until all input bytes are used.
§Errors
Returns a state, length, count, or cryptographic error and closes the writer.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StreamRequestSealer
impl RefUnwindSafe for StreamRequestSealer
impl Send for StreamRequestSealer
impl Sync for StreamRequestSealer
impl Unpin for StreamRequestSealer
impl UnsafeUnpin for StreamRequestSealer
impl UnwindSafe for StreamRequestSealer
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