pub enum EventStreamConfigResponse {
Disabled,
Enabled(Metrics),
WasAlreadyEnabled,
}Expand description
A Sandstorm event stream config response.
Variants§
Disabled
Indicates that the event stream is now disabled. If this is a response to a request to enable it, then it is the server refusing to enable the event stream.
Enabled(Metrics)
Indicates that the event stream is now enabled, as well as a metrics snapshot at the time the events were enabled (this can be used to infer accurate real time metrics).
WasAlreadyEnabled
Indicates that the event stream was already enabled.
Trait Implementations§
Source§impl ByteRead for EventStreamConfigResponse
impl ByteRead for EventStreamConfigResponse
Source§impl Clone for EventStreamConfigResponse
impl Clone for EventStreamConfigResponse
Source§fn clone(&self) -> EventStreamConfigResponse
fn clone(&self) -> EventStreamConfigResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EventStreamConfigResponse
Source§impl Debug for EventStreamConfigResponse
impl Debug for EventStreamConfigResponse
impl Eq for EventStreamConfigResponse
Source§impl PartialEq for EventStreamConfigResponse
impl PartialEq for EventStreamConfigResponse
Source§fn eq(&self, other: &EventStreamConfigResponse) -> bool
fn eq(&self, other: &EventStreamConfigResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EventStreamConfigResponse
Auto Trait Implementations§
impl Freeze for EventStreamConfigResponse
impl RefUnwindSafe for EventStreamConfigResponse
impl Send for EventStreamConfigResponse
impl Sync for EventStreamConfigResponse
impl Unpin for EventStreamConfigResponse
impl UnsafeUnpin for EventStreamConfigResponse
impl UnwindSafe for EventStreamConfigResponse
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