#[non_exhaustive]
pub enum SubscribeStreamStatus {
Ok,
NotFound,
PermissionDenied,
}
Expand description
The status of a subscribe stream response.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Ok
The request to subscribe was accepted.
NotFound
The requested path was not found.
PermissionDenied
The user did not have permission to subscribe to the requested stream.
Trait Implementations
sourceimpl Clone for SubscribeStreamStatus
impl Clone for SubscribeStreamStatus
sourcefn clone(&self) -> SubscribeStreamStatus
fn clone(&self) -> SubscribeStreamStatus
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SubscribeStreamStatus
impl Debug for SubscribeStreamStatus
sourceimpl From<SubscribeStreamStatus> for Status
impl From<SubscribeStreamStatus> for Status
sourcefn from(other: SubscribeStreamStatus) -> Self
fn from(other: SubscribeStreamStatus) -> Self
Converts to this type from the input type.
impl Copy for SubscribeStreamStatus
Auto Trait Implementations
impl RefUnwindSafe for SubscribeStreamStatus
impl Send for SubscribeStreamStatus
impl Sync for SubscribeStreamStatus
impl Unpin for SubscribeStreamStatus
impl UnwindSafe for SubscribeStreamStatus
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request