Struct quinn_proto::SendStream [−][src]
pub struct SendStream<'a> { /* fields omitted */ }Access to streams
Implementations
impl<'a> SendStream<'a>[src]
impl<'a> SendStream<'a>[src]pub fn write(&mut self, data: &[u8]) -> Result<usize, WriteError>[src]
Send data on the given stream
Returns the number of bytes successfully written.
pub fn write_chunks(
&mut self,
data: &mut [Bytes]
) -> Result<Written, WriteError>[src]
&mut self,
data: &mut [Bytes]
) -> Result<Written, WriteError>
Send data on the given stream
Returns the number of bytes and chunks successfully written.
Note that this method might also write a partial chunk. In this case
Written::chunks will not count this chunk as fully written. However
the chunk will be advanced and contain only non-written data after the call.
pub fn stopped(&mut self) -> Result<Option<VarInt>, UnknownStream>[src]
Check if this stream was stopped, get the reason if it was
pub fn finish(&mut self) -> Result<(), FinishError>[src]
Finish a send stream, signalling that no more data will be sent.
If this fails, no StreamEvent::Finished will be generated.
pub fn reset(&mut self, error_code: VarInt) -> Result<(), UnknownStream>[src]
pub fn set_priority(&mut self, priority: i32) -> Result<(), UnknownStream>[src]
pub fn priority(&self) -> Result<i32, UnknownStream>[src]
Auto Trait Implementations
impl<'a> !RefUnwindSafe for SendStream<'a>
impl<'a> !RefUnwindSafe for SendStream<'a>impl<'a> Send for SendStream<'a>
impl<'a> Send for SendStream<'a>impl<'a> !Sync for SendStream<'a>
impl<'a> !Sync for SendStream<'a>impl<'a> Unpin for SendStream<'a>
impl<'a> Unpin for SendStream<'a>impl<'a> !UnwindSafe for SendStream<'a>
impl<'a> !UnwindSafe for SendStream<'a>Blanket Implementations
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,