pub struct WireStreams { /* private fields */ }Implementations§
Source§impl WireStreams
impl WireStreams
pub fn transferred(&self) -> bool
pub async fn send(&self, epoch: u64, payload: &[u8]) -> Result<(), ServingError>
pub fn finish_input(&self, epoch: u64) -> Result<(), ServingError>
pub async fn receive(&self, epoch: u64) -> Result<Option<Vec<u8>>, ServingError>
Trait Implementations§
Source§impl Clone for WireStreams
impl Clone for WireStreams
Source§fn clone(&self) -> WireStreams
fn clone(&self) -> WireStreams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 !RefUnwindSafe for WireStreams
impl !UnwindSafe for WireStreams
impl Freeze for WireStreams
impl Send for WireStreams
impl Sync for WireStreams
impl Unpin for WireStreams
impl UnsafeUnpin for WireStreams
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