pub struct BoundaryId(/* private fields */);Expand description
Integer handle for a compile-time streaming boundary.
Resolve an authored boundary name once with
StreamingResponse::boundary, then reuse this allocation-free handle for
every response operation.
Implementations§
Source§impl BoundaryId
impl BoundaryId
Sourcepub fn from_raw(raw: u32) -> BoundaryId
pub fn from_raw(raw: u32) -> BoundaryId
Rebuild a handle from the integer a foreign host round-tripped.
Out-of-range values are rejected by the response, not here, so hosts that pass an arbitrary integer get the same actionable ordering error a Rust caller would.
Trait Implementations§
Source§impl Clone for BoundaryId
impl Clone for BoundaryId
Source§fn clone(&self) -> BoundaryId
fn clone(&self) -> BoundaryId
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BoundaryId
Source§impl Debug for BoundaryId
impl Debug for BoundaryId
impl Eq for BoundaryId
Source§impl Hash for BoundaryId
impl Hash for BoundaryId
Source§impl PartialEq for BoundaryId
impl PartialEq for BoundaryId
impl StructuralPartialEq for BoundaryId
Auto Trait Implementations§
impl Freeze for BoundaryId
impl RefUnwindSafe for BoundaryId
impl Send for BoundaryId
impl Sync for BoundaryId
impl Unpin for BoundaryId
impl UnsafeUnpin for BoundaryId
impl UnwindSafe for BoundaryId
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more