pub struct Stream<'a> { /* private fields */ }
Expand description
A stream of arbitrary data.
Implementations§
Source§impl<'a> Stream<'a>
impl<'a> Stream<'a>
Sourcepub fn obj_id(&self) -> ObjectIdentifier
pub fn obj_id(&self) -> ObjectIdentifier
Return the object identifier of the stream.
Sourcepub fn decoded(&self) -> Result<Vec<u8>, DecodeFailure>
pub fn decoded(&self) -> Result<Vec<u8>, DecodeFailure>
Return the decoded data of the stream.
Note that the result of this method will not be cached, so calling it multiple times is expensive.
Sourcepub fn decoded_image(
&self,
image_params: &ImageDecodeParams,
) -> Result<FilterResult, DecodeFailure>
pub fn decoded_image( &self, image_params: &ImageDecodeParams, ) -> Result<FilterResult, DecodeFailure>
Return the decoded data of the stream, and return image metadata if available.
Trait Implementations§
impl<'a> StructuralPartialEq for Stream<'a>
Auto Trait Implementations§
impl<'a> Freeze for Stream<'a>
impl<'a> !RefUnwindSafe for Stream<'a>
impl<'a> Send for Stream<'a>
impl<'a> Sync for Stream<'a>
impl<'a> Unpin for Stream<'a>
impl<'a> !UnwindSafe for Stream<'a>
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