pub struct SuspendableResponse {
pub suspendable: bool,
pub reasons: Vec<PermanentSuspendError>,
}Expand description
Response to a /suspendable request.
Reports whether the pipeline supports suspend and resume operations. If not, provides the reasons why suspending is not supported.
Fields§
§suspendable: boolIs the pipeline suspendable?
reasons: Vec<PermanentSuspendError>If the pipeline is not suspendable, why not?
Implementations§
Source§impl SuspendableResponse
impl SuspendableResponse
Sourcepub fn new(suspendable: bool, reasons: Vec<PermanentSuspendError>) -> Self
pub fn new(suspendable: bool, reasons: Vec<PermanentSuspendError>) -> Self
Create a new suspendable response.
Trait Implementations§
Source§impl Clone for SuspendableResponse
impl Clone for SuspendableResponse
Source§fn clone(&self) -> SuspendableResponse
fn clone(&self) -> SuspendableResponse
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 moreSource§impl Debug for SuspendableResponse
impl Debug for SuspendableResponse
Source§impl<'de> Deserialize<'de> for SuspendableResponse
impl<'de> Deserialize<'de> for SuspendableResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SuspendableResponse
Source§impl Hash for SuspendableResponse
impl Hash for SuspendableResponse
Source§impl PartialEq for SuspendableResponse
impl PartialEq for SuspendableResponse
Source§impl Serialize for SuspendableResponse
impl Serialize for SuspendableResponse
impl StructuralPartialEq for SuspendableResponse
Auto Trait Implementations§
impl Freeze for SuspendableResponse
impl RefUnwindSafe for SuspendableResponse
impl Send for SuspendableResponse
impl Sync for SuspendableResponse
impl Unpin for SuspendableResponse
impl UnsafeUnpin for SuspendableResponse
impl UnwindSafe for SuspendableResponse
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.