pub struct BinaryStreamContent(/* private fields */);
Implementations§
Source§impl BinaryStreamContent
impl BinaryStreamContent
pub fn new_empty() -> BinaryStreamContent
pub async fn add_stream_listener(&self, listener: Listener<BinaryStreamItem>)
pub fn receive_stream( &self, listener_prefix: String, ) -> impl Stream<Item = BinaryStreamItem>
pub fn start_writing(&self, mime_type: &str)
pub fn write(&self, data: &[u8])
pub fn finish(&self)
Trait Implementations§
Source§impl Clone for BinaryStreamContent
impl Clone for BinaryStreamContent
Source§fn clone(&self) -> BinaryStreamContent
fn clone(&self) -> BinaryStreamContent
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl ContentType for BinaryStreamContent
impl ContentType for BinaryStreamContent
Source§impl From<BinaryStreamContent> for AnyContentType
impl From<BinaryStreamContent> for AnyContentType
Source§fn from(binary_stream: BinaryStreamContent) -> AnyContentType
fn from(binary_stream: BinaryStreamContent) -> AnyContentType
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BinaryStreamContent
impl !RefUnwindSafe for BinaryStreamContent
impl !Send for BinaryStreamContent
impl !Sync for BinaryStreamContent
impl Unpin for BinaryStreamContent
impl !UnwindSafe for BinaryStreamContent
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