pub struct BlockDevicePayloadStreamer { /* private fields */ }
Expand description
Streams the contents of a block device over the PayloadStream protocol.
Implementations§
source§impl BlockDevicePayloadStreamer
impl BlockDevicePayloadStreamer
pub async fn new(block_device: BlockProxy) -> Result<Self, Error>
Trait Implementations§
source§impl PayloadStreamer for BlockDevicePayloadStreamer
impl PayloadStreamer for BlockDevicePayloadStreamer
source§fn service_payload_stream_requests<'life0, 'async_trait>(
self: Box<Self>,
stream: PayloadStreamRequestStream,
status_callback: Option<&'life0 dyn StatusCallback>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn service_payload_stream_requests<'life0, 'async_trait>(
self: Box<Self>,
stream: PayloadStreamRequestStream,
status_callback: Option<&'life0 dyn StatusCallback>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Handle the server side of the PayloadStream service.
Auto Trait Implementations§
impl !Freeze for BlockDevicePayloadStreamer
impl !RefUnwindSafe for BlockDevicePayloadStreamer
impl Send for BlockDevicePayloadStreamer
impl Sync for BlockDevicePayloadStreamer
impl Unpin for BlockDevicePayloadStreamer
impl !UnwindSafe for BlockDevicePayloadStreamer
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