#[non_exhaustive]pub struct StreamStatus {
pub stream_id: i32,
pub status: Option<Status>,
/* private fields */
}Expand description
The result of a stream.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.stream_id: i32The unique ID of this stream, assigned by the client.
status: Option<Status>The result of the stream. Either “Okay” for success or “Fail” for failure.
Implementations§
Source§impl StreamStatus
impl StreamStatus
pub fn new() -> Self
Sourcepub fn set_stream_id<T: Into<i32>>(self, v: T) -> Self
pub fn set_stream_id<T: Into<i32>>(self, v: T) -> Self
Sourcepub fn set_status<T: Into<Option<Status>>>(self, v: T) -> Self
pub fn set_status<T: Into<Option<Status>>>(self, v: T) -> Self
Sourcepub fn okay(&self) -> Option<&Box<Okay>>
pub fn okay(&self) -> Option<&Box<Okay>>
The value of status
if it holds a Okay, None if the field is not set or
holds a different branch.
Sourcepub fn fail(&self) -> Option<&Box<Fail>>
pub fn fail(&self) -> Option<&Box<Fail>>
The value of status
if it holds a Fail, None if the field is not set or
holds a different branch.
Trait Implementations§
Source§impl Clone for StreamStatus
impl Clone for StreamStatus
Source§fn clone(&self) -> StreamStatus
fn clone(&self) -> StreamStatus
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 moreSource§impl Debug for StreamStatus
impl Debug for StreamStatus
Source§impl Default for StreamStatus
impl Default for StreamStatus
Source§fn default() -> StreamStatus
fn default() -> StreamStatus
Returns the “default value” for a type. Read more
Source§impl Message for StreamStatus
impl Message for StreamStatus
Source§impl PartialEq for StreamStatus
impl PartialEq for StreamStatus
impl StructuralPartialEq for StreamStatus
Auto Trait Implementations§
impl Freeze for StreamStatus
impl RefUnwindSafe for StreamStatus
impl Send for StreamStatus
impl Sync for StreamStatus
impl Unpin for StreamStatus
impl UnwindSafe for StreamStatus
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