pub enum StreamControl {
BeginTransfer(BeginTransfer),
AckTransfer(Empty),
EndTransfer(Empty),
Shutdown(i32),
}
Expand description
Stream control message: sent instead of usual stream frames if the frame type is 1 (StreamControl). TODO: consider defining the stream framing format in FIDL also.
Variants§
BeginTransfer(BeginTransfer)
A transfer is beginning: the sending node would like to transfer control.
AckTransfer(Empty)
Acknowledge a begin_transfer - the sender has seen a previously sent begin_transfer, and responded to it. This should be the last message sent on a regular stream.
EndTransfer(Empty)
End a transfer - signal that a drain stream has finished draining. This should be the last message sent on a drain stream.
Shutdown(i32)
Shutdown the stream with some status.
Implementations§
Source§impl StreamControl
impl StreamControl
Trait Implementations§
Source§impl Clone for StreamControl
impl Clone for StreamControl
Source§fn clone(&self) -> StreamControl
fn clone(&self) -> StreamControl
Returns a copy 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 moreSource§impl Debug for StreamControl
impl Debug for StreamControl
Source§impl<D: ResourceDialect> Decode<StreamControl, D> for StreamControl
impl<D: ResourceDialect> Decode<StreamControl, D> for StreamControl
Source§impl<D: ResourceDialect> Encode<StreamControl, D> for &StreamControl
impl<D: ResourceDialect> Encode<StreamControl, D> for &StreamControl
Source§impl Hash for StreamControl
impl Hash for StreamControl
Source§impl Ord for StreamControl
impl Ord for StreamControl
Source§fn cmp(&self, other: &StreamControl) -> Ordering
fn cmp(&self, other: &StreamControl) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for StreamControl
impl PartialEq for StreamControl
Source§impl PartialOrd for StreamControl
impl PartialOrd for StreamControl
Source§impl TypeMarker for StreamControl
impl TypeMarker for StreamControl
Source§type Owned = StreamControl
type Owned = StreamControl
The owned Rust type which this FIDL type decodes into.
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.Source§impl ValueTypeMarker for StreamControl
impl ValueTypeMarker for StreamControl
Source§type Borrowed<'a> = &'a StreamControl
type Borrowed<'a> = &'a StreamControl
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Copy for StreamControl
impl Eq for StreamControl
impl Persistable for StreamControl
impl StructuralPartialEq for StreamControl
Auto Trait Implementations§
impl Freeze for StreamControl
impl RefUnwindSafe for StreamControl
impl Send for StreamControl
impl Sync for StreamControl
impl Unpin for StreamControl
impl UnwindSafe for StreamControl
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
The marker type to use when the body is at the top-level.
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
The marker type to use when the body is nested in a result union.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)