pub struct ByteStreamSender { /* private fields */ }
Implementations§
Source§impl ByteStreamSender
impl ByteStreamSender
pub async fn send(&self, bytes: &[u8]) -> u64
Sourcepub async unsafe fn send_buffer(&self, buffer: BufferPtr) -> u64
pub async unsafe fn send_buffer(&self, buffer: BufferPtr) -> u64
SAFETY: You must have exclusive ownership of the buffer and there must be enough headroom for modrpc::TransmitPacket::BASE_LEN + 8 bytes
pub async fn wait_consumed(&self, _cursor: u64)
Trait Implementations§
Source§impl Clone for ByteStreamSender
impl Clone for ByteStreamSender
Source§fn clone(&self) -> ByteStreamSender
fn clone(&self) -> ByteStreamSender
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 ByteStreamSender
impl !RefUnwindSafe for ByteStreamSender
impl !Send for ByteStreamSender
impl !Sync for ByteStreamSender
impl Unpin for ByteStreamSender
impl !UnwindSafe for ByteStreamSender
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