#[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§
source§impl Clone for SubscribeStreamStatus
impl Clone for SubscribeStreamStatus
source§fn clone(&self) -> SubscribeStreamStatus
fn clone(&self) -> SubscribeStreamStatus
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 SubscribeStreamStatus
impl Debug for SubscribeStreamStatus
source§impl From<SubscribeStreamStatus> for Status
impl From<SubscribeStreamStatus> for Status
source§fn 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§
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request