pub enum CancelSupport {
None,
BestEffort,
Confirmed,
}Expand description
How far the remote side supports cancellation (spec 009, 3.2.4).
Variants§
None
BestEffort
A cancel is accepted; a stop is never confirmed.
Confirmed
A cancel is answered with a confirmed stop and its final charge.
Trait Implementations§
Source§impl Clone for CancelSupport
impl Clone for CancelSupport
impl Copy for CancelSupport
Source§impl Debug for CancelSupport
impl Debug for CancelSupport
Source§impl<'de> Deserialize<'de> for CancelSupport
impl<'de> Deserialize<'de> for CancelSupport
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 CancelSupport
Source§impl JsonSchema for CancelSupport
impl JsonSchema for CancelSupport
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for CancelSupport
impl PartialEq for CancelSupport
Source§impl Serialize for CancelSupport
impl Serialize for CancelSupport
impl StructuralPartialEq for CancelSupport
Auto Trait Implementations§
impl Freeze for CancelSupport
impl RefUnwindSafe for CancelSupport
impl Send for CancelSupport
impl Sync for CancelSupport
impl Unpin for CancelSupport
impl UnsafeUnpin for CancelSupport
impl UnwindSafe for CancelSupport
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