#[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§
source§impl From<PublishStreamStatus> for Status
impl From<PublishStreamStatus> for Status
source§fn 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§
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