pub struct StreamAsset { /* private fields */ }Implementations§
Source§impl StreamAsset
impl StreamAsset
pub fn new(reciever: Receiver<WebSocketMessage>, asset: String) -> Self
pub fn new_chuncked( reciever: Receiver<WebSocketMessage>, asset: String, chunk_size: usize, ) -> Self
pub async fn recieve(&self) -> PocketResult<DataCandle>
pub async fn recieve_chunked(&self) -> PocketResult<DataCandle>
pub fn to_stream(&self) -> impl Stream<Item = PocketResult<DataCandle>> + '_
pub fn to_stream_chuncked( &self, ) -> impl Stream<Item = PocketResult<DataCandle>> + '_
pub fn to_stream_static( self: Arc<Self>, ) -> impl Stream<Item = PocketResult<DataCandle>> + 'static
pub fn to_stream_chuncked_static( self: Arc<Self>, ) -> impl Stream<Item = PocketResult<DataCandle>> + 'static
Trait Implementations§
Source§impl Clone for StreamAsset
impl Clone for StreamAsset
Source§fn clone(&self) -> StreamAsset
fn clone(&self) -> StreamAsset
Returns a duplicate 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 StreamAsset
impl RefUnwindSafe for StreamAsset
impl Send for StreamAsset
impl Sync for StreamAsset
impl !Unpin for StreamAsset
impl UnwindSafe for StreamAsset
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