pub struct FramedSendStream {
inner: SendStream,
}Expand description
A framed writer for a QUIC send stream. Handles MoQT length-prefixed framing.
Fields§
§inner: SendStreamImplementations§
Source§impl FramedSendStream
impl FramedSendStream
pub fn new(inner: SendStream) -> Self
Sourcepub async fn write_control(
&mut self,
msg: &ControlMessage,
) -> Result<(), ConnectionError>
pub async fn write_control( &mut self, msg: &ControlMessage, ) -> Result<(), ConnectionError>
Write a control message to the stream with type+length framing.
Sourcepub async fn write_subgroup_header(
&mut self,
header: &SubgroupHeader,
) -> Result<(), ConnectionError>
pub async fn write_subgroup_header( &mut self, header: &SubgroupHeader, ) -> Result<(), ConnectionError>
Write a subgroup stream header.
Sourcepub async fn write_fetch_header(
&mut self,
header: &FetchHeader,
) -> Result<(), ConnectionError>
pub async fn write_fetch_header( &mut self, header: &FetchHeader, ) -> Result<(), ConnectionError>
Write a fetch response header.
Sourcepub async fn write_object(
&mut self,
header: &ObjectHeader,
payload: &[u8],
) -> Result<(), ConnectionError>
pub async fn write_object( &mut self, header: &ObjectHeader, payload: &[u8], ) -> Result<(), ConnectionError>
Write an object header followed by payload.
Sourcepub async fn finish(&mut self) -> Result<(), ConnectionError>
pub async fn finish(&mut self) -> Result<(), ConnectionError>
Finish the stream (send FIN).
Auto Trait Implementations§
impl Freeze for FramedSendStream
impl RefUnwindSafe for FramedSendStream
impl Send for FramedSendStream
impl Sync for FramedSendStream
impl Unpin for FramedSendStream
impl UnsafeUnpin for FramedSendStream
impl UnwindSafe for FramedSendStream
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