#[non_exhaustive]
pub enum PublishStreamStatus {
Ok,
NotFound,
PermissionDenied,
}
Expand description
The status of a publish 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 publish was accepted.
NotFound
The requested path was not found.
PermissionDenied
The user did not have permission to publish to the requested stream.
Trait Implementations
sourceimpl From<PublishStreamStatus> for Status
impl From<PublishStreamStatus> for Status
sourcefn from(other: PublishStreamStatus) -> Self
fn from(other: PublishStreamStatus) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for PublishStreamStatus
impl Send for PublishStreamStatus
impl Sync for PublishStreamStatus
impl Unpin for PublishStreamStatus
impl UnwindSafe for PublishStreamStatus
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