pub struct StreamFrameBuilder { /* private fields */ }
Expand description
Builder for StreamFrame
.
Implementations§
Source§impl StreamFrameBuilder
impl StreamFrameBuilder
pub fn offset(&mut self, value: Option<i64>) -> &mut Self
pub fn data(&mut self, value: Option<Vec<u8>>) -> &mut Self
pub fn file(&mut self, value: Option<String>) -> &mut Self
pub fn file_event(&mut self, value: Option<String>) -> &mut Self
Sourcepub fn build(&self) -> Result<StreamFrame, StreamFrameBuilderError>
pub fn build(&self) -> Result<StreamFrame, StreamFrameBuilderError>
Trait Implementations§
Source§impl Clone for StreamFrameBuilder
impl Clone for StreamFrameBuilder
Source§fn clone(&self) -> StreamFrameBuilder
fn clone(&self) -> StreamFrameBuilder
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for StreamFrameBuilder
impl RefUnwindSafe for StreamFrameBuilder
impl Send for StreamFrameBuilder
impl Sync for StreamFrameBuilder
impl Unpin for StreamFrameBuilder
impl UnwindSafe for StreamFrameBuilder
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